From 8d6d7386a35b4a6fdd7d599f2184780bb83cc306 Mon Sep 17 00:00:00 2001 From: John Date: Sat, 26 Apr 2025 13:57:08 -0500 Subject: [PATCH] gh-133016: Fix a reference to removed `asyncio.futures.TimeoutError` (#133019) Just use the builtin `TimeoutError`, and remove the import of `futures`. --- Lib/test/test_asyncio/utils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Lib/test/test_asyncio/utils.py b/Lib/test/test_asyncio/utils.py index ad2bde490c88..0a96573a81c1 100644 --- a/Lib/test/test_asyncio/utils.py +++ b/Lib/test/test_asyncio/utils.py @@ -28,7 +28,6 @@ except ImportError: # pragma: no cover 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): -- 2.47.3