summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-02-01 11:39:50 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2016-02-01 11:39:50 (GMT)
commit0df5313458ed253e4a299b50c3b86156649c5a0f (patch)
treef8514f9e736042538ce7ef40b14ba1163e9be393 /Lib
parent275bd96aa67ce2bf1c1f57cb5c2cb840d3afbb2d (diff)
downloadcpython-0df5313458ed253e4a299b50c3b86156649c5a0f.zip
cpython-0df5313458ed253e4a299b50c3b86156649c5a0f.tar.gz
cpython-0df5313458ed253e4a299b50c3b86156649c5a0f.tar.bz2
test_asyncio: fix test_timeout_time()
Accept time delta up to 0.12 second, instead of 0.11, for the "AMD64 FreeBSD 9.x" buildbot slave.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_asyncio/test_tasks.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_asyncio/test_tasks.py b/Lib/test/test_asyncio/test_tasks.py
index 42e30a4..c9d49f0 100644
--- a/Lib/test/test_asyncio/test_tasks.py
+++ b/Lib/test/test_asyncio/test_tasks.py
@@ -2352,7 +2352,8 @@ class TimeoutTests(test_utils.TestCase):
foo_running = False
dt = self.loop.time() - start
- self.assertTrue(0.09 < dt < 0.11, dt)
+ # tolerate a small delta for slow delta or unstable clocks
+ self.assertTrue(0.09 < dt < 0.12, dt)
self.assertFalse(foo_running)
self.loop.run_until_complete(go())