[Python-checkins] cpython (3.4): test_multiprocessing: tolerate a delta of 30 ms because of bad clock resolution
victor.stinner
python-checkins at python.org
Thu Feb 5 14:26:13 CET 2015
https://hg.python.org/cpython/rev/a436592e60ae
changeset: 94520:a436592e60ae
branch: 3.4
parent: 94517:28a9da0842aa
user: Victor Stinner <victor.stinner at gmail.com>
date: Thu Feb 05 14:25:05 2015 +0100
summary:
test_multiprocessing: tolerate a delta of 30 ms because of bad clock resolution
on Windows
files:
Lib/test/_test_multiprocessing.py | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/Lib/test/_test_multiprocessing.py b/Lib/test/_test_multiprocessing.py
--- a/Lib/test/_test_multiprocessing.py
+++ b/Lib/test/_test_multiprocessing.py
@@ -716,9 +716,11 @@
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)
#
#
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list