diff options
author | Guido van Rossum <guido@dropbox.com> | 2013-10-19 15:47:26 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@dropbox.com> | 2013-10-19 15:47:26 (GMT) |
commit | 7058dad0bd3b2f50cd04892108ffe33a5252ef78 (patch) | |
tree | d44435293feeab9eb2a0f7fc4a0df854c5a429ba | |
parent | 0f5bff24ab206fb0365e34684b2a99afdfb47327 (diff) | |
download | cpython-7058dad0bd3b2f50cd04892108ffe33a5252ef78.zip cpython-7058dad0bd3b2f50cd04892108ffe33a5252ef78.tar.gz cpython-7058dad0bd3b2f50cd04892108ffe33a5252ef78.tar.bz2 |
Skip the asyncio tests when threads are not available.
See http://bugs.python.org/issue19295
-rw-r--r-- | Lib/test/test_asyncio/__init__.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_asyncio/__init__.py b/Lib/test/test_asyncio/__init__.py index ec483ea..024d3e1 100644 --- a/Lib/test/test_asyncio/__init__.py +++ b/Lib/test/test_asyncio/__init__.py @@ -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') |