[python-hdf5storage] 24/84: Fixed set syntax error for python 2.6 introduced into the tests.

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Mon Feb 29 08:24:59 UTC 2016


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to annotated tag 0.1.10
in repository python-hdf5storage.

commit 7e96e8ea08e4d44159d7008f9d0fd64c512636c0
Author: Freja Nordsiek <fnordsie at gmail.com>
Date:   Sun Sep 14 20:58:29 2014 -0400

    Fixed set syntax error for python 2.6 introduced into the tests.
---
 tests/test_write_readback.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/test_write_readback.py b/tests/test_write_readback.py
index d610388..d70aef7 100644
--- a/tests/test_write_readback.py
+++ b/tests/test_write_readback.py
@@ -229,7 +229,8 @@ class TestPythonMatlabFormat(object):
         if sys.hexversion < 0x03000000:
             for i, name in enumerate(names):
                 names[i] = name.encode()
-        dtypes = [random.choice(list(set(self.dtypes) - {'S', 'U'}))
+        dtypes = [random.choice(list(set(self.dtypes)
+                  - set(('S', 'U'))))
                   for i in range(len(names))]
         if field_shapes is None:
             shapes = [self.random_numpy_shape(

-- 
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