Skip to content

Commit 8d6d738

Browse files
authored
gh-133016: Fix a reference to removed asyncio.futures.TimeoutError (#133019)
Just use the builtin `TimeoutError`, and remove the import of `futures`.
1 parent 5e96e4f commit 8d6d738

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
@@ -104,7 +103,7 @@ def run_until(loop, pred, timeout=support.SHORT_TIMEOUT):
104103
loop.run_until_complete(tasks.sleep(delay))
105104
delay = max(delay * 2, 1.0)
106105
else:
107-
raise futures.TimeoutError()
106+
raise TimeoutError()
108107

109108

110109
def run_once(loop):

0 commit comments

Comments
 (0)