From d42200bec37eef2a7478d88988ff00addd0a9202 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 25 Jan 2020 11:50:47 +0000 Subject: gentoo resync : 25.01.2020 --- dev-python/h5py/files/h5py-2.10.0-tests.patch | 32 +++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 dev-python/h5py/files/h5py-2.10.0-tests.patch (limited to 'dev-python/h5py/files/h5py-2.10.0-tests.patch') diff --git a/dev-python/h5py/files/h5py-2.10.0-tests.patch b/dev-python/h5py/files/h5py-2.10.0-tests.patch new file mode 100644 index 000000000000..9f810ed46f01 --- /dev/null +++ b/dev-python/h5py/files/h5py-2.10.0-tests.patch @@ -0,0 +1,32 @@ +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() -- cgit v1.2.3