mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
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.
This commit is contained in:
parent
275bd96aa6
commit
0df5313458
1 changed files with 2 additions and 1 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue