From: Guido van Rossum Date: Sat, 19 Oct 2013 15:47:26 +0000 (-0700) Subject: Skip the asyncio tests when threads are not available. X-Git-Tag: v3.4.0a4~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7058dad0bd3b2f50cd04892108ffe33a5252ef78;p=thirdparty%2FPython%2Fcpython.git Skip the asyncio tests when threads are not available. See http://bugs.python.org/issue19295 --- diff --git a/Lib/test/test_asyncio/__init__.py b/Lib/test/test_asyncio/__init__.py index ec483ea1018f..024d3e174385 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')