[Python-checkins] bpo-30317, test_multiprocessing: fix test_timeout() (GH-7957)
Victor Stinner
webhook-mailer at python.org
Wed Jun 27 05:04:55 EDT 2018
https://github.com/python/cpython/commit/f15f66d275d1166839312c9ff3a67c00b486c7d6
commit: f15f66d275d1166839312c9ff3a67c00b486c7d6
branch: master
author: Victor Stinner <vstinner at redhat.com>
committer: GitHub <noreply at github.com>
date: 2018-06-27T11:04:51+02:00
summary:
bpo-30317, test_multiprocessing: fix test_timeout() (GH-7957)
Tolerate a different of 50 ms, instead of just 30 ms, in
test_timeout() of multiprocessing tests. This change should fix such
test failure on Windows:
FAIL: test_timeout (test.test_multiprocessing_spawn.WithProcessesTestQueue)
Traceback (most recent call last):
File "lib\test\_test_multiprocessing.py", line 753, in test_timeout
self.assertGreaterEqual(delta, 0.170)
AssertionError: 0.16138982772827148 not greater than or equal to 0.17
files:
M Lib/test/_test_multiprocessing.py
diff --git a/Lib/test/_test_multiprocessing.py b/Lib/test/_test_multiprocessing.py
index 31eadd24d359..424e1fa07a29 100644
--- a/Lib/test/_test_multiprocessing.py
+++ b/Lib/test/_test_multiprocessing.py
@@ -1035,9 +1035,9 @@ def test_timeout(self):
start = time.time()
self.assertRaises(pyqueue.Empty, q.get, True, 0.200)
delta = time.time() - start
- # Tolerate a delta of 30 ms because of the bad clock resolution on
+ # Tolerate a delta of 50 ms because of the bad clock resolution on
# Windows (usually 15.6 ms)
- self.assertGreaterEqual(delta, 0.170)
+ self.assertGreaterEqual(delta, 0.150)
close_queue(q)
def test_queue_feeder_donot_stop_onexc(self):
More information about the Python-checkins
mailing list