Kaydet (Commit) 32879053 authored tarafından Guido van Rossum's avatar Guido van Rossum

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

üst afccb0a8
import os import os
import sys import sys
import unittest import unittest
from test.support import run_unittest from test.support import run_unittest, import_module
try: # Skip tests if we don't have threading.
import threading import_module('threading')
except ImportError: # Skip tests if we don't have concurrent.futures.
raise unittest.SkipTest("No module named '_thread'") import_module('concurrent.futures')
def suite(): 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