summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_logging.py
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2011-04-20 11:20:44 (GMT)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2011-04-20 11:20:44 (GMT)
commit1e42f9e4c007d73d85561aeb1104935a64b3a54a (patch)
tree9c933c15232dce4191fff607c6b8a2bd1ad887cf /Lib/test/test_logging.py
parent95bf50416e428fc266cbadebb89c5d56b6a9cd55 (diff)
downloadcpython-1e42f9e4c007d73d85561aeb1104935a64b3a54a.zip
cpython-1e42f9e4c007d73d85561aeb1104935a64b3a54a.tar.gz
cpython-1e42f9e4c007d73d85561aeb1104935a64b3a54a.tar.bz2
Attempt fix of #11557 by refining setup/teardown logic.
Diffstat (limited to 'Lib/test/test_logging.py')
-rw-r--r--Lib/test/test_logging.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py
index d7f9306..33bd845 100644
--- a/Lib/test/test_logging.py
+++ b/Lib/test/test_logging.py
@@ -2417,6 +2417,7 @@ class BasicConfigTest(unittest.TestCase):
self.handlers = logging.root.handlers
self.saved_handlers = logging._handlers.copy()
self.saved_handler_list = logging._handlerList[:]
+ self.original_logging_level = logging.root.level
self.addCleanup(self.cleanup)
logging.root.handlers = []
@@ -2431,6 +2432,7 @@ class BasicConfigTest(unittest.TestCase):
logging._handlers.clear()
logging._handlers.update(self.saved_handlers)
logging._handlerList[:] = self.saved_handler_list
+ logging.root.level = self.original_logging_level
#@unittest.skipIf(True, "test disabled, issue #11557")
def test_no_kwargs(self):