Skip to content

Commit 446c81c

Browse files
[3.11] gh-110088: Fix asyncio test_prompt_cancellation() (GH-110157) (#110159)
gh-110088: Fix asyncio test_prompt_cancellation() (GH-110157) Don't measure the CI performance: don't test the maximum elapsed time. The check failed on a slow CI. (cherry picked from commit c62b49e) Co-authored-by: Victor Stinner <[email protected]>
1 parent 080f5b9 commit 446c81c

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Lib/test/test_asyncio/test_events.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1671,12 +1671,9 @@ async def main():
16711671
self.loop.stop()
16721672
return res
16731673

1674-
start = time.monotonic()
16751674
t = self.loop.create_task(main())
16761675
self.loop.run_forever()
1677-
elapsed = time.monotonic() - start
16781676

1679-
self.assertLess(elapsed, 0.1)
16801677
self.assertEqual(t.result(), 'cancelled')
16811678
self.assertRaises(asyncio.CancelledError, f.result)
16821679
if ov is not None:

0 commit comments

Comments
 (0)