[Python-checkins] cpython (3.5): Close #25367: Fix test_coroutines with no thread support
victor.stinner
python-checkins at python.org
Sun Oct 11 04:12:48 EDT 2015
https://hg.python.org/cpython/rev/d8737b841fcf
changeset: 98676:d8737b841fcf
branch: 3.5
user: Victor Stinner <victor.stinner at gmail.com>
date: Sun Oct 11 10:10:31 2015 +0200
summary:
Close #25367: Fix test_coroutines with no thread support
Skip test_asyncio_1() when the asyncio module cannot be imported because
CPython is compiled with no thread support.
files:
Lib/test/test_coroutines.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/Lib/test/test_coroutines.py b/Lib/test/test_coroutines.py
--- a/Lib/test/test_coroutines.py
+++ b/Lib/test/test_coroutines.py
@@ -1322,7 +1322,9 @@
class CoroAsyncIOCompatTest(unittest.TestCase):
def test_asyncio_1(self):
- import asyncio
+ # asyncio cannot be imported when Python is compiled without thread
+ # support
+ support.import_module('asyncio')
class MyException(Exception):
pass
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list