From: Victor Stinner Date: Sat, 30 Sep 2023 20:40:10 +0000 (+0200) Subject: gh-110088: Fix asyncio test_prompt_cancellation() (#110157) X-Git-Tag: v3.13.0a1~206 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c62b49ecc8da13fa9522865ef6fe0aec194fd0d8;p=thirdparty%2FPython%2Fcpython.git 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. --- diff --git a/Lib/test/test_asyncio/test_events.py b/Lib/test/test_asyncio/test_events.py index 3ee6565b2b65..b25c0975736e 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: