[Python-checkins] cpython (3.6): Issue #28480: Adjust or skip tests if multithreading is disabled
martin.panter
python-checkins at python.org
Thu Oct 20 01:31:08 EDT 2016
https://hg.python.org/cpython/rev/7cb86d404866
changeset: 104577:7cb86d404866
branch: 3.6
user: Martin Panter <vadmium+py at gmail.com>
date: Thu Oct 20 05:10:44 2016 +0000
summary:
Issue #28480: Adjust or skip tests if multithreading is disabled
files:
Lib/test/test_asyncgen.py | 4 +++-
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
--- 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 @@
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
--- a/Lib/test/test_logging.py
+++ b/Lib/test/test_logging.py
@@ -4304,7 +4304,7 @@
'logProcesses', 'currentframe',
'PercentStyle', 'StrFormatStyle', 'StringTemplateStyle',
'Filterer', 'PlaceHolder', 'Manager', 'RootLogger',
- 'root'}
+ 'root', 'threading'}
support.check__all__(self, logging, blacklist=blacklist)
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list