Skip to content

Commit caa8065

Browse files
Fix implicit imports
1 parent a4709e5 commit caa8065

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Lib/test/test_asyncio/test_eager_task_factory.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import unittest
66

77
from unittest import mock
8-
from asyncio import tasks
8+
from asyncio import staggered, tasks
99
from test.test_asyncio import utils as test_utils
1010
from test.support.script_helper import assert_python_ok
1111

@@ -225,7 +225,7 @@ async def blocked():
225225
await fut
226226

227227
async def run():
228-
winner, index, excs = await asyncio.staggered.staggered_race(
228+
winner, index, excs = await staggered.staggered_race(
229229
[
230230
lambda: blocked(),
231231
lambda: asyncio.sleep(1, result="sleep1"),
@@ -247,7 +247,7 @@ async def fail():
247247
raise ValueError("no good")
248248

249249
async def run():
250-
winner, index, excs = await asyncio.staggered.staggered_race(
250+
winner, index, excs = await staggered.staggered_race(
251251
[
252252
lambda: fail(),
253253
lambda: asyncio.sleep(1, result="sleep1"),

Lib/test/test_monitoring.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
import unittest
1313

1414
import test.support
15-
from test.support import requires_specialization_ft, script_helper
15+
from test.support import import_helper, requires_specialization_ft, script_helper
1616

17-
_testcapi = test.support.import_helper.import_module("_testcapi")
18-
_testinternalcapi = test.support.import_helper.import_module("_testinternalcapi")
17+
_testcapi = import_helper.import_module("_testcapi")
18+
_testinternalcapi = import_helper.import_module("_testinternalcapi")
1919

2020
PAIR = (0,1)
2121

0 commit comments

Comments
 (0)