]> granicus.if.org Git - python/commitdiff
Issue #28480: Adjust or skip tests if multithreading is disabled
authorMartin Panter <vadmium+py@gmail.com>
Thu, 20 Oct 2016 05:10:44 +0000 (05:10 +0000)
committerMartin Panter <vadmium+py@gmail.com>
Thu, 20 Oct 2016 05:10:44 +0000 (05:10 +0000)
Lib/test/test_asyncgen.py
Lib/test/test_logging.py

index 41b1b4f4b48547614600cf6a2f2785c2ad1cfc08..c24fbea5b0945725ffce3e521d181c02fc1e475c 100644 (file)
@@ -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
index e45a982dbf70474e7b32e43de1335ce194612556..078a86b359a2d84e42d9ed097b8e044b03a8a592 100644 (file)
@@ -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)