diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2015-10-11 08:53:15 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2015-10-11 08:53:15 (GMT) |
commit | 718c984e6ed66fd7829af528db60479dbbe73475 (patch) | |
tree | e9d9e761a60e61d830377fedea1ec8332b4911cf | |
parent | 0c886f740b4947415031d4cb8816162aab9df399 (diff) | |
download | cpython-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.py | 2 |
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 |