[Python-checkins] cpython (3.1): test_multiprocessing: use assertLess() to see the timeout on error

victor.stinner python-checkins at python.org
Thu Mar 24 16:39:49 CET 2011


http://hg.python.org/cpython/rev/e53097288c8c
changeset:   68895:e53097288c8c
branch:      3.1
parent:      68875:45cc298d40eb
user:        Victor Stinner <victor.stinner at haypocalc.com>
date:        Thu Mar 24 16:24:07 2011 +0100
summary:
  test_multiprocessing: use assertLess() to see the timeout on error

files:
  Lib/test/test_multiprocessing.py |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Lib/test/test_multiprocessing.py b/Lib/test/test_multiprocessing.py
--- a/Lib/test/test_multiprocessing.py
+++ b/Lib/test/test_multiprocessing.py
@@ -1084,7 +1084,7 @@
         self.pool.terminate()
         join = TimingWrapper(self.pool.join)
         join()
-        self.assertTrue(join.elapsed < 0.2)
+        self.assertLess(join.elapsed, 0.2)
 #
 # Test that manager has expected number of shared objects left
 #

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list