8000 [3.13] gh-133016: Fix a reference to removed `asyncio.futures.Timeout… · python/cpython@3a1a2a0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3a1a2a0

Browse files
[3.13] gh-133016: Fix a reference to removed asyncio.futures.TimeoutError (GH-133019) (#133023)
gh-133016: Fix a reference to removed `asyncio.futures.TimeoutError` (GH-133019) Just use the builtin `TimeoutError`, and remove the import of `futures`. (cherry picked from commit 8d6d738) Co-authored-by: John <john-xyz@outlook.com>
1 parent 4031902 commit 3a1a2a0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Lib/test/test_asyncio/utils.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
from asyncio import base_events
2929
from asyncio import events
3030
from asyncio import format_helpers
31-
from asyncio import futures
3231
from asyncio import tasks
3332
from asyncio.log import logger
3433
from test import support
@@ -120,7 +119,7 @@ def run_until(loop, pred, timeout=support.SHORT_TIMEOUT):
120119
loop.run_until_complete(tasks.sleep(delay))
121120
delay = max(delay * 2, 1.0)
122121
else:
123-
raise futures.TimeoutError()
122+
raise TimeoutError()
124123

125124

126125
def run_once(loop):

0 commit comments

Comments
 (0)
0