]> granicus.if.org Git - python/commitdiff
Skip the asyncio tests when threads are not available.
authorGuido van Rossum <guido@dropbox.com>
Sat, 19 Oct 2013 15:47:26 +0000 (08:47 -0700)
committerGuido van Rossum <guido@dropbox.com>
Sat, 19 Oct 2013 15:47:26 +0000 (08:47 -0700)
See http://bugs.python.org/issue19295

Lib/test/test_asyncio/__init__.py

index ec483ea1018faf1896dd11b3c2273553edee7ec2..024d3e1743850b292f3201417b386c47f8cdab1f 100644 (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')