mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
bpo-30317: Fix multiprocessing test_timeout() (GH-8621)
Multiprocessing test_timeout() now accepts a delta of 100 ms instead of just 50 ms, since the test failed with 135.8 ms instead of the expected 200 ms.
This commit is contained in:
parent
72ec3193b5
commit
5640d030e1
1 changed files with 4 additions and 3 deletions
|
|
@ -1039,9 +1039,10 @@ class _TestQueue(BaseTestCase):
|
|||
start = time.time()
|
||||
self.assertRaises(pyqueue.Empty, q.get, True, 0.200)
|
||||
delta = time.time() - start
|
||||
# Tolerate a delta of 50 ms because of the bad clock resolution on
|
||||
# Windows (usually 15.6 ms)
|
||||
self.assertGreaterEqual(delta, 0.150)
|
||||
# bpo-30317: Tolerate a delta of 100 ms because of the bad clock
|
||||
# resolution on Windows (usually 15.6 ms). x86 Windows7 3.x once
|
||||
# failed because the delta was only 135.8 ms.
|
||||
self.assertGreaterEqual(delta, 0.100)
|
||||
close_queue(q)
|
||||
|
||||
def test_queue_feeder_donot_stop_onexc(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue