Skip the asyncio tests when threads are not available.
See http://bugs.python.org/issue19295
This commit is contained in:
parent
0f5bff24ab
commit
7058dad0bd
|
@ -3,6 +3,11 @@ import sys
|
|||
import unittest
|
||||
from test.support import run_unittest
|
||||
|
||||
try:
|
||||
import threading
|
||||
except ImportError:
|
||||
raise unittest.SkipTest("No module named '_thread'")
|
||||
|
||||
|
||||
def suite():
|
||||
tests_file = os.path.join(os.path.dirname(__file__), 'tests.txt')
|
||||
|
|
Loading…
Reference in New Issue