From 7058dad0bd3b2f50cd04892108ffe33a5252ef78 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Sat, 19 Oct 2013 08:47:26 -0700 Subject: [PATCH] Skip the asyncio tests when threads are not available. See http://bugs.python.org/issue19295 --- Lib/test/test_asyncio/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Lib/test/test_asyncio/__init__.py b/Lib/test/test_asyncio/__init__.py index ec483ea101..024d3e1743 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') -- 2.49.0