[h5py] 443/455: Remove overly aggressive tests

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Thu Jul 2 18:19:59 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 9807b519a9c64dee4c4476658aee9632486f8d11
Author: andrewcollette <andrew.collette at gmail.com>
Date:   Tue Mar 9 23:37:19 2010 +0000

    Remove overly aggressive tests
---
 h5py/tests/high/test_file.py | 8 --------
 h5py/tests/high/test_refs.py | 9 +--------
 2 files changed, 1 insertion(+), 16 deletions(-)

diff --git a/h5py/tests/high/test_file.py b/h5py/tests/high/test_file.py
index cffb317..1750741 100644
--- a/h5py/tests/high/test_file.py
+++ b/h5py/tests/high/test_file.py
@@ -124,14 +124,6 @@ class TestCore(FileBase):
         self.assert_('g' in f)
         f.close()
 
-    @tests.require(api=16)
-    def test_exc(self):
-        """ (File) Opening with core driver raises NotImplementedError on 1.6 """
-        self.name = mktemp()
-        self.f = h5py.File(self.name, 'w')
-        self.f.close()
-        self.assertRaises(NotImplementedError, h5py.File, self.name, 'r', driver='core')
-
     def test_backing(self):
         """ (File) Backing store for core driver """
         self.name = mktemp()
diff --git a/h5py/tests/high/test_refs.py b/h5py/tests/high/test_refs.py
index 20c4092..af829fc 100644
--- a/h5py/tests/high/test_refs.py
+++ b/h5py/tests/high/test_refs.py
@@ -1,6 +1,6 @@
 
 
-from h5py import tests
+from h5py import tests, version
 import h5py
 import numpy as np
 
@@ -46,13 +46,6 @@ class TestObjRef(Base):
         x = self.f[g.ref]
         self.assertEqual(x.name, g.name)
 
-    @tests.require(api=16)
-    def test_name_16(self):
-        """ (Refs) .name property gives None for dereferenced objects (1.6) """
-        g = self.f.create_group('foo')
-        x = self.f[g.ref]
-        self.assertIsNone(x.name)
-
     def test_bool(self):
         """ (Refs) __nonzero__ tracks validity """
         ref = h5py.Reference()

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