Commit b5f335bc authored by Guido van Rossum's avatar Guido van Rossum

Skip test_asyncio if concurrent.futures can't be imported. Hopeful fix for issue 19645.

parent c5d48218
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():
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment