From: Victor Stinner Date: Thu, 5 Feb 2015 13:25:05 +0000 (+0100) Subject: test_multiprocessing: tolerate a delta of 30 ms because of bad clock resolution X-Git-Tag: v3.4.3rc1~12 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=aad7b2e4f5380d67a93cf088c05692d4513f4aa9;p=thirdparty%2FPython%2Fcpython.git test_multiprocessing: tolerate a delta of 30 ms because of bad clock resolution on Windows --- diff --git a/Lib/test/_test_multiprocessing.py b/Lib/test/_test_multiprocessing.py index 44d6c71e408d..2d4395e7cd08 100644 --- a/Lib/test/_test_multiprocessing.py +++ b/Lib/test/_test_multiprocessing.py @@ -716,9 +716,11 @@ class _TestQueue(BaseTestCase): def test_timeout(self): q = multiprocessing.Queue() start = time.time() - self.assertRaises(pyqueue.Empty, q.get, True, 0.2) + self.assertRaises(pyqueue.Empty, q.get, True, 0.200) delta = time.time() - start - self.assertGreaterEqual(delta, 0.18) + # Tolerate a delta of 30 ms because of the bad clock resolution on + # Windows (usually 15.6 ms) + self.assertGreaterEqual(delta, 0.170) # #