Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0df5313

Browse files
committed
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.
1 parent 275bd96 commit 0df5313

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Lib/test/test_asyncio/test_tasks.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2352,7 +2352,8 @@ def go():
23522352
foo_running = False
23532353

23542354
dt = self.loop.time() - start
2355-
self.assertTrue(0.09 < dt < 0.11, dt)
2355+
# tolerate a small delta for slow delta or unstable clocks
2356+
self.assertTrue(0.09 < dt < 0.12, dt)
23562357
self.assertFalse(foo_running)
23572358

23582359
self.loop.run_until_complete(go())

0 commit comments

Comments
 (0)