https://github.com/python/cpython/commit/8d6d7386a35b4a6fdd7d599f2184780bb83cc306
commit: 8d6d7386a35b4a6fdd7d599f2184780bb83cc306
branch: main
author: John <[email protected]>
committer: gvanrossum <[email protected]>
date: 2025-04-26T18:57:08Z
summary:
gh-133016: Fix a reference to removed `asyncio.futures.TimeoutError` (#133019)
Just use the builtin `TimeoutError`, and remove the import of `futures`.
files:
M Lib/test/test_asyncio/utils.py
diff --git a/Lib/test/test_asyncio/utils.py b/Lib/test/test_asyncio/utils.py
index ad2bde490c888a..0a96573a81c173 100644
--- a/Lib/test/test_asyncio/utils.py
+++ b/Lib/test/test_asyncio/utils.py
@@ -28,7 +28,6 @@
from asyncio import base_events
from asyncio import events
from asyncio import format_helpers
-from asyncio import futures
from asyncio import tasks
from asyncio.log import logger
from test import support
@@ -104,7 +103,7 @@ def run_until(loop, pred, timeout=support.SHORT_TIMEOUT):
loop.run_until_complete(tasks.sleep(delay))
delay = max(delay * 2, 1.0)
else:
- raise futures.TimeoutError()
+ raise TimeoutError()
def run_once(loop):
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]