Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3a1a2a0

Browse files
[3.13]gh-133016: Fix a reference to removedasyncio.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 commit8d6d738)Co-authored-by: John <john-xyz@outlook.com>
1 parent4031902 commit3a1a2a0

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
fromasyncioimportbase_events
2929
fromasyncioimportevents
3030
fromasyncioimportformat_helpers
31-
fromasyncioimportfutures
3231
fromasyncioimporttasks
3332
fromasyncio.logimportlogger
3433
fromtestimportsupport
@@ -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-
raisefutures.TimeoutError()
122+
raiseTimeoutError()
124123

125124

126125
defrun_once(loop):

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp