diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-07-28 10:27:13 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-07-28 10:27:13 +0100 |
commit | f4fc10428424904caf2035cffc442195cb088b2c (patch) | |
tree | 72f320d5963e55586cfdeed2b14c72b8191b6327 /dev-python/h5py/files | |
parent | fbd9734cedfe790955100b8e4ab3613457d77b1a (diff) |
gentoo resync : 28.07.2021
Diffstat (limited to 'dev-python/h5py/files')
-rw-r--r-- | dev-python/h5py/files/h5py-2.10.0-tests.patch | 32 | ||||
-rw-r--r-- | dev-python/h5py/files/h5py-3.2.1-i686-types.patch | 55 |
2 files changed, 0 insertions, 87 deletions
diff --git a/dev-python/h5py/files/h5py-2.10.0-tests.patch b/dev-python/h5py/files/h5py-2.10.0-tests.patch deleted file mode 100644 index 9f810ed46f01..000000000000 --- a/dev-python/h5py/files/h5py-2.10.0-tests.patch +++ /dev/null @@ -1,32 +0,0 @@ -These tests fail as confirmed by upstream. - -Reference: https://github.com/h5py/h5py/issues/1291 -Reference: https://github.com/gentoo/gentoo/pull/14343 - -diff --git a/h5py/tests/test_file2.py b/h5py/tests/test_file2.py -index 0fbf2d5..a7a28bb 100644 ---- a/h5py/tests/test_file2.py -+++ b/h5py/tests/test_file2.py -@@ -207,22 +207,6 @@ class TestFileObj(TestCase): - f.create_dataset('test', data=list(range(12))) - self.assertRaises(Exception, list, f['test']) - -- def test_exception_write(self): -- -- class BrokenBytesIO(io.BytesIO): -- def write(self, b): -- raise Exception('I am broken') -- -- f = h5py.File(BrokenBytesIO(), 'w') -- self.assertRaises(Exception, f.create_dataset, 'test', -- data=list(range(12))) -- self.assertRaises(Exception, f.close) -- -- def test_exception_close(self): -- fileobj = io.BytesIO() -- f = h5py.File(fileobj, 'w') -- fileobj.close() -- self.assertRaises(Exception, f.close) - - def test_method_vanish(self): - fileobj = io.BytesIO() diff --git a/dev-python/h5py/files/h5py-3.2.1-i686-types.patch b/dev-python/h5py/files/h5py-3.2.1-i686-types.patch deleted file mode 100644 index 80bbb112e7bd..000000000000 --- a/dev-python/h5py/files/h5py-3.2.1-i686-types.patch +++ /dev/null @@ -1,55 +0,0 @@ -From 76c9c8c4049943c490556fa888cf7743d1a677e5 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org> -Date: Mon, 12 Apr 2021 11:48:16 +0200 -Subject: [PATCH] TST: Skip problematic datatypes based on their length - -Filter datatypes for tests based on their length rather than keeping -a list of illegal platform+type combinations. This is more robust -than the previous solution and fixes the test failures with new numpy -versions (1.19.5 is the oldest I have tested) that declare 'float96' -and 'complex192' on i686 rather than 'float128' and 'complex256'. - -This fixes the following test failure: - - E AttributeError: module 'numpy' has no attribute 'float128' - -plus, later on (again): - - E TypeError: Illegal length 24 for complex dtype ---- - h5py/tests/test_dtype.py | 12 +++--------- - 1 file changed, 3 insertions(+), 9 deletions(-) - -diff --git a/h5py/tests/test_dtype.py b/h5py/tests/test_dtype.py -index c5fac97e..ec4eda21 100644 ---- a/h5py/tests/test_dtype.py -+++ b/h5py/tests/test_dtype.py -@@ -13,8 +13,6 @@ except ImportError: - - from .common import ut, TestCase - --UNSUPPORTED_LONG_DOUBLE = ('i386', 'i486', 'i586', 'i686', 'ppc64le') -- - - class TestVlen(TestCase): - -@@ -289,13 +287,9 @@ class TestOffsets(TestCase): - if (np.issubdtype(f, np.floating) or - np.issubdtype(f, np.complexfloating))) - -- if platform.machine() in UNSUPPORTED_LONG_DOUBLE: -- dtype_dset_map = {str(j): d -- for j, d in enumerate(dtypes) -- if d not in (np.float128, np.complex256)} -- else: -- dtype_dset_map = {str(j): d -- for j, d in enumerate(dtypes)} -+ dtype_dset_map = {str(j): d -+ for j, d in enumerate(dtypes) -+ if d().nbytes in [4, 8, 16, 32]} - - fname = self.mktemp() - --- -2.31.1 - |