summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-10-02 15:47:41 (GMT)
committerGitHub <noreply@github.com>2023-10-02 15:47:41 (GMT)
commitce332aa8c5c2d3a086cabb3f21d2da3a96e78680 (patch)
tree521a3cfdd5cc7a24c7a19978ba9a3f08a7b70aab
parentb8a30a4365d243604d5853ce524075c7e7ed0951 (diff)
downloadcpython-ce332aa8c5c2d3a086cabb3f21d2da3a96e78680.zip
cpython-ce332aa8c5c2d3a086cabb3f21d2da3a96e78680.tar.gz
cpython-ce332aa8c5c2d3a086cabb3f21d2da3a96e78680.tar.bz2
[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 c62b49ecc8da13fa9522865ef6fe0aec194fd0d8) Co-authored-by: Victor Stinner <vstinner@python.org>
-rw-r--r--Lib/test/test_asyncio/test_events.py3
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 1647d23..8839d5b 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: