Skip to content

Commit 7058dad

Browse files
author
Guido van Rossum
committed
Skip the asyncio tests when threads are not available.
See http://bugs.python.org/issue19295
1 parent 0f5bff2 commit 7058dad

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎Lib/test/test_asyncio/__init__.py‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
import unittest
44
from test.support import run_unittest
55

6+
try:
7+
import threading
8+
except ImportError:
9+
raise unittest.SkipTest("No module named '_thread'")
10+
611

712
def suite():
813
tests_file = os.path.join(os.path.dirname(__file__), 'tests.txt')

0 commit comments

Comments
 (0)