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

This commit is contained in:
Guido van Rossum 2013-11-17 17:00:21 -08:00
parent afccb0a821
commit 3287905335
1 changed files with 5 additions and 5 deletions

View File

@ -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():