diff options
author | Martin Panter <vadmium+py@gmail.com> | 2016-10-20 05:10:44 (GMT) |
---|---|---|
committer | Martin Panter <vadmium+py@gmail.com> | 2016-10-20 05:10:44 (GMT) |
commit | 94332cba0f0a020f35590f1c2da23a579e3e9f3a (patch) | |
tree | 8b74e2418ef007e5d51c9b0f7f2d432ebdb5e6f9 /Lib | |
parent | fa27d5f2297b4f3a91b1fe350e760cd4f701d916 (diff) | |
download | cpython-94332cba0f0a020f35590f1c2da23a579e3e9f3a.zip cpython-94332cba0f0a020f35590f1c2da23a579e3e9f3a.tar.gz cpython-94332cba0f0a020f35590f1c2da23a579e3e9f3a.tar.bz2 |
Issue #28480: Adjust or skip tests if multithreading is disabled
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_asyncgen.py | 4 | ||||
-rw-r--r-- | Lib/test/test_logging.py | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/Lib/test/test_asyncgen.py b/Lib/test/test_asyncgen.py index 41b1b4f..c24fbea 100644 --- a/Lib/test/test_asyncgen.py +++ b/Lib/test/test_asyncgen.py @@ -1,4 +1,3 @@ -import asyncio import inspect import sys import types @@ -6,6 +5,9 @@ import unittest from unittest import mock +from test.support import import_module +asyncio = import_module("asyncio") + class AwaitException(Exception): pass diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py index e45a982..078a86b 100644 --- a/Lib/test/test_logging.py +++ b/Lib/test/test_logging.py @@ -4304,7 +4304,7 @@ class MiscTestCase(unittest.TestCase): 'logProcesses', 'currentframe', 'PercentStyle', 'StrFormatStyle', 'StringTemplateStyle', 'Filterer', 'PlaceHolder', 'Manager', 'RootLogger', - 'root'} + 'root', 'threading'} support.check__all__(self, logging, blacklist=blacklist) |