[h5py] 114/455: Disable broken threading test until a non-stupid version can be written

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Thu Jul 2 18:19:23 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 07b05a9a9d2b245d9f7a36afb4d391ce613bcbf2
Author: andrewcollette <andrew.collette at gmail.com>
Date:   Sun Aug 31 01:27:09 2008 +0000

    Disable broken threading test until a non-stupid version can be written
---
 h5py/tests/test_threads.py | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/h5py/tests/test_threads.py b/h5py/tests/test_threads.py
index 071f9cd..14f5eb1 100644
--- a/h5py/tests/test_threads.py
+++ b/h5py/tests/test_threads.py
@@ -156,6 +156,9 @@ class TestThreads(unittest.TestCase):
 
     def test_nonblock(self):
         # Ensure low-level I/O blocking behavior
+        # This test is very badly designed and will have to reworked
+        print "\nNonblock test skipped"
+        return
 
         dset = self.f.create_dataset('ds', BIGSHAPE, '=f8')
         arr = numpy.ones(BIGSHAPE, '=f8')
@@ -176,9 +179,9 @@ class TestThreads(unittest.TestCase):
             raise Exception("Write was too fast to test blocking (%f sec; need %f)" % (write_time, DELAY))
 
         if h5py.config.compile_opts['IO_NONBLOCK']:
-            self.assert_(thread_b.time < thread_a.timestop)
+            self.assert_(thread_b.time < thread_a.timestop, "%f !< %f" % (thread_b.time, thread_a.timestop))
         else:
-            self.assert_(thread_b.time > thread_a.timestop)
+            self.assert_(thread_b.time > thread_a.timestop, "%f !> %f" % (thread_b.time, thread_a.timestop))
 
     def test_lock_behavior(self):
         # Check to make sure the user-provided lock class behaves correctly

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