Skip to content

Commit c62b49e

Browse files
authored
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.
1 parent 7513994 commit c62b49e

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
@@ -1693,12 +1693,9 @@ async def main():
16931693
self.loop.stop()
16941694
return res
16951695

1696-
start = time.monotonic()
16971696
t = self.loop.create_task(main())
16981697
self.loop.run_forever()
1699-
elapsed = time.monotonic() - start
17001698

1701-
self.assertLess(elapsed, 0.1)
17021699
self.assertEqual(t.result(), 'cancelled')
17031700
self.assertRaises(asyncio.CancelledError, f.result)
17041701
if ov is not None:

0 commit comments

Comments
 (0)