Kaydet (Commit) b45c0f7e authored tarafından Victor Stinner's avatar Victor Stinner

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.
üst bc5b80ba
......@@ -1322,7 +1322,9 @@ class CoroutineTest(unittest.TestCase):
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment