]> granicus.if.org Git - python/commitdiff
test_multiprocessing: use assertLess() to see the timeout on error
authorVictor Stinner <victor.stinner@haypocalc.com>
Thu, 24 Mar 2011 15:24:07 +0000 (16:24 +0100)
committerVictor Stinner <victor.stinner@haypocalc.com>
Thu, 24 Mar 2011 15:24:07 +0000 (16:24 +0100)
Lib/test/test_multiprocessing.py

index d1ac4b7c44c73a7f87d445113bdfdba47bd1b285..f4031de61fdba08e7bf73e9ffde898145a0f5e93 100644 (file)
@@ -1084,7 +1084,7 @@ class _TestPool(BaseTestCase):
         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
 #