File: tests-open-loom-write-permissions.patch

package info (click to toggle)
python-loompy 3.0.7%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,316 kB
  • sloc: python: 3,152; sh: 63; makefile: 16
file content (14 lines) | stat: -rw-r--r-- 516 bytes parent folder | download | duplicates (2)
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):