summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-10-11 08:53:15 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2015-10-11 08:53:15 (GMT)
commit718c984e6ed66fd7829af528db60479dbbe73475 (patch)
treee9d9e761a60e61d830377fedea1ec8332b4911cf
parent0c886f740b4947415031d4cb8816162aab9df399 (diff)
downloadcpython-718c984e6ed66fd7829af528db60479dbbe73475.zip
cpython-718c984e6ed66fd7829af528db60479dbbe73475.tar.gz
cpython-718c984e6ed66fd7829af528db60479dbbe73475.tar.bz2
Close #25367: Fix test_coroutines()
Fix usage of support.import_module('asyncio'): store the result in an 'asyncio' variable.
-rw-r--r--Lib/test/test_coroutines.py2
1 files changed, 1 insertions, 1 deletions
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