]> granicus.if.org Git - python/commitdiff
Close #25367: Fix test_coroutines()
authorVictor Stinner <victor.stinner@gmail.com>
Sun, 11 Oct 2015 08:53:15 +0000 (10:53 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Sun, 11 Oct 2015 08:53:15 +0000 (10:53 +0200)
Fix usage of support.import_module('asyncio'): store the result in an 'asyncio'
variable.

Lib/test/test_coroutines.py

index 71fbe8212fbdd86a6e048b55f3c184315f5f51d3..b15e24408432d70997d210ff9a1604d1b0eb12c2 100644 (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