diff options
author | Victor Stinner <vstinner@python.org> | 2023-09-30 20:40:10 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-30 20:40:10 (GMT) |
commit | c62b49ecc8da13fa9522865ef6fe0aec194fd0d8 (patch) | |
tree | 1733d91c388aeed7ebedd3682a5464b5edbfd044 /Lib | |
parent | 7513994c927857679544449392744be308d36586 (diff) | |
download | cpython-c62b49ecc8da13fa9522865ef6fe0aec194fd0d8.zip cpython-c62b49ecc8da13fa9522865ef6fe0aec194fd0d8.tar.gz cpython-c62b49ecc8da13fa9522865ef6fe0aec194fd0d8.tar.bz2 |
gh-110088: Fix asyncio test_prompt_cancellation() (#110157)
Don't measure the CI performance: don't test the maximum elapsed
time. The check failed on a slow CI.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_asyncio/test_events.py | 3 |
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 3ee6565..b25c097 100644 --- a/Lib/test/test_asyncio/test_events.py +++ b/Lib/test/test_asyncio/test_events.py @@ -1693,12 +1693,9 @@ class EventLoopTestsMixin: self.loop.stop() return res - start = time.monotonic() t = self.loop.create_task(main()) self.loop.run_forever() - elapsed = time.monotonic() - start - self.assertLess(elapsed, 0.1) self.assertEqual(t.result(), 'cancelled') self.assertRaises(asyncio.CancelledError, f.result) if ov is not None: |