[Python-checkins] cpython: Skip the asyncio tests when threads are not available.
guido.van.rossum
python-checkins at python.org
Sat Oct 19 17:49:21 CEST 2013
http://hg.python.org/cpython/rev/1c281f3de48f
changeset: 86472:1c281f3de48f
user: Guido van Rossum <guido at dropbox.com>
date: Sat Oct 19 08:47:26 2013 -0700
summary:
Skip the asyncio tests when threads are not available.
See http://bugs.python.org/issue19295
files:
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
--- a/Lib/test/test_asyncio/__init__.py
+++ b/Lib/test/test_asyncio/__init__.py
@@ -3,6 +3,11 @@
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')
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list