Skip to content

Commit ce332aa

Browse files
[3.12] gh-110088: Fix asyncio test_prompt_cancellation() (GH-110157) (#110158)
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 b8a30a4 commit ce332aa

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)