summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncio
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-12-03 12:56:41 (GMT)
committerGitHub <noreply@github.com>2020-12-03 12:56:41 (GMT)
commit7e5e13d113798117d5ef25c5ffdbd0eb39420f98 (patch)
treecff1bc1af5215c046e678789d3d221f279122d5b /Lib/test/test_asyncio
parent2ad93821a69e6efac3b0efe1d205d6e5ef030791 (diff)
downloadcpython-7e5e13d113798117d5ef25c5ffdbd0eb39420f98.zip
cpython-7e5e13d113798117d5ef25c5ffdbd0eb39420f98.tar.gz
cpython-7e5e13d113798117d5ef25c5ffdbd0eb39420f98.tar.bz2
bpo-42553: Fix test_asyncio.test_call_later() (GH-23627)
Fix test_asyncio.test_call_later() race condition: don't measure asyncio performance in the call_later() unit test. The test failed randomly on the CI.
Diffstat (limited to 'Lib/test/test_asyncio')
-rw-r--r--Lib/test/test_asyncio/test_events.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/Lib/test/test_asyncio/test_events.py b/Lib/test/test_asyncio/test_events.py
index 7f76011..ce61560 100644
--- a/Lib/test/test_asyncio/test_events.py
+++ b/Lib/test/test_asyncio/test_events.py
@@ -294,11 +294,8 @@ class EventLoopTestsMixin:
self.loop.stop()
self.loop.call_later(0.1, callback, 'hello world')
- t0 = time.monotonic()
self.loop.run_forever()
- t1 = time.monotonic()
self.assertEqual(results, ['hello world'])
- self.assertTrue(0.08 <= t1-t0 <= 0.8, t1-t0)
def test_call_soon(self):
results = []