8000 [3.13] gh-133016: Fix a reference to removed `asyncio.futures.TimeoutError` (GH-133019) by miss-islington · Pull Request #133023 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

[3.13] gh-133016: Fix a reference to removed asyncio.futures.TimeoutError (GH-133019) #133023

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 26, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
gh-133016: Fix a reference to removed asyncio.futures.TimeoutError (G…
…H-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>
  • Loading branch information
johnzhou721 authored and miss-islington committed Apr 26, 2025
commit 4cbaaaa7e9ce90a3dd1e35d97ca118dd5aa02e80
3 changes: 1 addition & 2 deletions Lib/test/test_asyncio/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -120,7 +119,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):
Expand Down
Loading
0