[h5py] 431/455: Fix DeprecationWarnings in test suite

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Thu Jul 2 18:19:58 UTC 2015


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

ghisvail-guest pushed a commit to annotated tag 1.3.0
in repository h5py.

commit 40431825aee33005177053d36e408d1c8788bffe
Author: andrewcollette <andrew.collette at gmail.com>
Date:   Mon Feb 22 22:27:54 2010 +0000

    Fix DeprecationWarnings in test suite
---
 h5py/tests/test_highlevel.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/h5py/tests/test_highlevel.py b/h5py/tests/test_highlevel.py
index e2a61ed..546fff6 100644
--- a/h5py/tests/test_highlevel.py
+++ b/h5py/tests/test_highlevel.py
@@ -321,9 +321,9 @@ class TestTypes(TestCasePlus):
 
             msg = "dset %s, type %s" % (idx, basetype)
 
-            dt = h5py.new_enum(basetype, vals)
-            self.assertEqual(h5py.get_enum(dt), vals, msg)
-            self.assert_(h5py.get_enum(np.dtype('i')) is None, msg)
+            dt = h5py.special_dtype(enum=(basetype, vals))
+            self.assertEqual(h5py.check_dtype(enum=dt), vals, msg)
+            self.assert_(h5py.check_dtype(enum=np.dtype('i')) is None, msg)
 
             # Test dataset creation
             refarr = np.zeros((4,4), dtype=dt)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/h5py.git



More information about the debian-science-commits mailing list