cpython: f91550e7e2b7 (original) (raw)
Mercurial > cpython
changeset 87095:f91550e7e2b7
asyncio: Relax timing requirement. Fixes issue 19579. [#19579]
Guido van Rossum guido@dropbox.com | |
---|---|
date | Wed, 13 Nov 2013 20:17:52 -0800 |
parents | 784a02ec2a26 |
children | e0fb41d41642 |
files | Lib/test/test_asyncio/test_base_events.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-)[+] [-] Lib/test/test_asyncio/test_base_events.py 4 |
line wrap: on
line diff
--- 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.TestCa f.cancel() # Don't complain about abandoned Future. def test__run_once(self):
h1 = events.TimerHandle(time.monotonic() + 0.1, lambda: True, ())[](#l1.7)
h1 = events.TimerHandle(time.monotonic() + 5.0, lambda: True, ())[](#l1.8) h2 = events.TimerHandle(time.monotonic() + 10.0, lambda: True, ())[](#l1.9)
h1.cancel() @@ -181,7 +181,7 @@ class BaseEventLoopTests(unittest.TestCa self.loop._run_once() t = self.loop._selector.select.call_args[0][0]
self.assertTrue(9.99 < t < 10.1, t)[](#l1.16)
self.assertTrue(9.9 < t < 10.1, t)[](#l1.17) self.assertEqual([h2], self.loop._scheduled)[](#l1.18) self.assertTrue(self.loop._process_events.called)[](#l1.19)