Commit 718c984e authored by Victor Stinner's avatar Victor Stinner

Close #25367: Fix test_coroutines()

Fix usage of support.import_module('asyncio'): store the result in an 'asyncio'
variable.
parent 0c886f74
......@@ -1324,7 +1324,7 @@ class CoroAsyncIOCompatTest(unittest.TestCase):
def test_asyncio_1(self):
# asyncio cannot be imported when Python is compiled without thread
# support
support.import_module('asyncio')
asyncio = support.import_module('asyncio')
class MyException(Exception):
pass
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment