File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 55import unittest
66
77from unittest import mock
8- from asyncio import tasks
8+ from asyncio import staggered , tasks
99from test .test_asyncio import utils as test_utils
1010from 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" ),
Original file line number Diff line number Diff line change 1212import unittest
1313
1414import 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
2020PAIR = (0 ,1 )
2121
You can’t perform that action at this time.
0 commit comments