From 718c984e6ed66fd7829af528db60479dbbe73475 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Sun, 11 Oct 2015 10:53:15 +0200 Subject: Close #25367: Fix test_coroutines() Fix usage of support.import_module('asyncio'): store the result in an 'asyncio' variable. --- Lib/test/test_coroutines.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_coroutines.py b/Lib/test/test_coroutines.py index 71fbe82..b15e244 100644 --- a/Lib/test/test_coroutines.py +++ b/Lib/test/test_coroutines.py @@ -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 -- cgit v0.12