Close #25367: Fix test_coroutines()

Fix usage of support.import_module('asyncio'): store the result in an 'asyncio'
variable.
This commit is contained in:
Victor Stinner 2015-10-11 10:53:15 +02:00
parent 0c886f740b
commit 718c984e6e

View file

@ -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