[python-hdf5storage] 02/13: Fixed write readback test to not reuse generated options for reading so that the transpose before reshape bug can be checked.
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Mon Feb 29 08:25:23 UTC 2016
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to annotated tag 0.1.12
in repository python-hdf5storage.
commit 8ca5a5c9955b994349f6b69642a01f163a69ebdc
Author: Freja Nordsiek <fnordsie at gmail.com>
Date: Sat Feb 13 19:46:57 2016 +0100
Fixed write readback test to not reuse generated options for reading so that the transpose before reshape bug can be checked.
---
tests/test_write_readback.py | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/tests/test_write_readback.py b/tests/test_write_readback.py
index ab73424..3eb52cc 100644
--- a/tests/test_write_readback.py
+++ b/tests/test_write_readback.py
@@ -64,17 +64,18 @@ class TestPythonMatlabFormat(object):
'float32', 'float64', 'complex64', 'complex128',
'S', 'U']
- def write_readback(self, data, name, options):
+ def write_readback(self, data, name, options, read_options=None):
# Write the data to the proper file with the given name, read it
# back, and return the result. The file needs to be deleted
- # before and after to keep junk from building up.
+ # before and after to keep junk from building up. Different
+ # options can be used for reading the data back.
if os.path.exists(self.filename):
os.remove(self.filename)
try:
hdf5storage.write(data, path=name, filename=self.filename,
options=options)
out = hdf5storage.read(path=name, filename=self.filename,
- options=options)
+ options=read_options)
except:
raise
finally:
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/python-hdf5storage.git
More information about the debian-science-commits
mailing list