diff options
author | Guido van Rossum <guido@dropbox.com> | 2013-11-14 04:17:52 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@dropbox.com> | 2013-11-14 04:17:52 (GMT) |
commit | 8ff3e8af72813614be90a4c1c47ed1e9fffbb295 (patch) | |
tree | 30388f39ea8ba8b16c826f4db6a964fe02f294a0 /Lib/test/test_asyncio | |
parent | c6ae813011bc588dd78f0f2fbbff61d789fe2c19 (diff) | |
download | cpython-8ff3e8af72813614be90a4c1c47ed1e9fffbb295.zip cpython-8ff3e8af72813614be90a4c1c47ed1e9fffbb295.tar.gz cpython-8ff3e8af72813614be90a4c1c47ed1e9fffbb295.tar.bz2 |
asyncio: Relax timing requirement. Fixes issue 19579.
Diffstat (limited to 'Lib/test/test_asyncio')
-rw-r--r-- | Lib/test/test_asyncio/test_base_events.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_asyncio/test_base_events.py b/Lib/test/test_asyncio/test_base_events.py index 9b883c5..3c4d52e 100644 --- a/Lib/test/test_asyncio/test_base_events.py +++ b/Lib/test/test_asyncio/test_base_events.py @@ -170,7 +170,7 @@ class BaseEventLoopTests(unittest.TestCase): f.cancel() # Don't complain about abandoned Future. def test__run_once(self): - h1 = events.TimerHandle(time.monotonic() + 0.1, lambda: True, ()) + h1 = events.TimerHandle(time.monotonic() + 5.0, lambda: True, ()) h2 = events.TimerHandle(time.monotonic() + 10.0, lambda: True, ()) h1.cancel() @@ -181,7 +181,7 @@ class BaseEventLoopTests(unittest.TestCase): self.loop._run_once() t = self.loop._selector.select.call_args[0][0] - self.assertTrue(9.99 < t < 10.1, t) + self.assertTrue(9.9 < t < 10.1, t) self.assertEqual([h2], self.loop._scheduled) self.assertTrue(self.loop._process_events.called) |