mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Close #25367: Fix test_coroutines()
Fix usage of support.import_module('asyncio'): store the result in an 'asyncio' variable.
This commit is contained in:
parent
0c886f740b
commit
718c984e6e
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue