Skip the asyncio tests when threads are not available.

See http://bugs.python.org/issue19295
This commit is contained in:
Guido van Rossum 2013-10-19 08:47:26 -07:00
parent 0f5bff24ab
commit 7058dad0bd
1 changed files with 5 additions and 0 deletions

View File

@ -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')