bpo-30317: Fix multiprocessing test_timeout() (GH-8621) · python/cpython@f0e3da8 (original) (raw)

Original file line number Diff line number Diff line change
@@ -882,9 +882,10 @@ def test_timeout(self):
882 882 start = time.time()
883 883 self.assertRaises(pyqueue.Empty, q.get, True, 0.200)
884 884 delta = time.time() - start
885 -# Tolerate a delta of 50 ms because of the bad clock resolution on
886 -# Windows (usually 15.6 ms)
887 -self.assertGreaterEqual(delta, 0.150)
885 +# bpo-30317: Tolerate a delta of 100 ms because of the bad clock
886 +# resolution on Windows (usually 15.6 ms). x86 Windows7 3.x once
887 +# failed because the delta was only 135.8 ms.
888 +self.assertGreaterEqual(delta, 0.100)
888 889 close_queue(q)
889 890
890 891 def test_queue_feeder_donot_stop_onexc(self):