diff options
author | Pablo Galindo <Pablogsal@gmail.com> | 2018-08-03 22:00:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-03 22:00:53 +0100 |
commit | f0e3da8814259283e8f3d53ad3d9735ffc273e00 (patch) | |
tree | d2936100df88c96f2322f98457ff3adc4a1b279a /Lib | |
parent | Fix docstring of Profiler class (GH-8651) (diff) | |
download | cpython-f0e3da8814259283e8f3d53ad3d9735ffc273e00.tar.gz cpython-f0e3da8814259283e8f3d53ad3d9735ffc273e00.tar.bz2 cpython-f0e3da8814259283e8f3d53ad3d9735ffc273e00.zip |
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.
(cherry picked from commit 5640d030e100aade54210034828b711c3b506b18)
Co-authored-by: Victor Stinner <vstinner@redhat.com>
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/_test_multiprocessing.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Lib/test/_test_multiprocessing.py b/Lib/test/_test_multiprocessing.py index c0030ee2f49..5c625dd4954 100644 --- a/Lib/test/_test_multiprocessing.py +++ b/Lib/test/_test_multiprocessing.py @@ -882,9 +882,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): |