mirror of
https://github.com/python/cpython.git
synced 2025-11-27 05:44:16 +00:00
Skip test_asyncio if concurrent.futures can't be imported. Hopeful fix for issue 19645.
This commit is contained in:
parent
afccb0a821
commit
3287905335
1 changed files with 5 additions and 5 deletions
|
|
@ -1,12 +1,12 @@
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import unittest
|
import unittest
|
||||||
from test.support import run_unittest
|
from test.support import run_unittest, import_module
|
||||||
|
|
||||||
try:
|
# Skip tests if we don't have threading.
|
||||||
import threading
|
import_module('threading')
|
||||||
except ImportError:
|
# Skip tests if we don't have concurrent.futures.
|
||||||
raise unittest.SkipTest("No module named '_thread'")
|
import_module('concurrent.futures')
|
||||||
|
|
||||||
|
|
||||||
def suite():
|
def suite():
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue