diff options
-rw-r--r-- | Lib/test/test_asyncio/__init__.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/test/test_asyncio/__init__.py b/Lib/test/test_asyncio/__init__.py index 024d3e1743..23ce5e8059 100644 --- a/Lib/test/test_asyncio/__init__.py +++ b/Lib/test/test_asyncio/__init__.py @@ -1,12 +1,12 @@ import os import sys import unittest -from test.support import run_unittest +from test.support import run_unittest, import_module -try: - import threading -except ImportError: - raise unittest.SkipTest("No module named '_thread'") +# Skip tests if we don't have threading. +import_module('threading') +# Skip tests if we don't have concurrent.futures. +import_module('concurrent.futures') def suite(): |