From: Victor Stinner Date: Sun, 11 Oct 2015 08:53:15 +0000 (+0200) Subject: Close #25367: Fix test_coroutines() X-Git-Tag: v3.5.1rc1~175 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=718c984e6ed66fd7829af528db60479dbbe73475;p=thirdparty%2FPython%2Fcpython.git Close #25367: Fix test_coroutines() Fix usage of support.import_module('asyncio'): store the result in an 'asyncio' variable. --- diff --git a/Lib/test/test_coroutines.py b/Lib/test/test_coroutines.py index 71fbe8212fbd..b15e24408432 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