1 2 3 4 5 6 7 8 9 10 11 12 13 14
|
Description: With h5py>3.0.0, files are opened with read permissions. In the tests, it should be used with write permissions
Author: Nilesh Patra <nilesh@debian.org>
Last-Update: 2021-07-03
--- a/tests/test_file_attribute_manager.py
+++ b/tests/test_file_attribute_manager.py
@@ -15,7 +15,7 @@
f = NamedTemporaryFile(suffix="loom")
f.close()
self.filename = f.name
- self.file = h5py.File(f.name)
+ self.file = h5py.File(f.name, 'w')
self.file.attrs["arr"] = self.VALUE_IN_FILE
def tearDown(self):
|