From: Vinay Sajip Date: Wed, 20 Apr 2011 11:50:42 +0000 (+0100) Subject: Attempt fix of #11557 by refining test logic. X-Git-Tag: v3.3.0a1~2543 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5b9eecf8cfa58fb33870537ca742fc752036c22e;p=thirdparty%2FPython%2Fcpython.git Attempt fix of #11557 by refining test logic. --- diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py index 33bd845f0730..45546cb5fc32 100644 --- a/Lib/test/test_logging.py +++ b/Lib/test/test_logging.py @@ -2453,7 +2453,7 @@ class BasicConfigTest(unittest.TestCase): self.assertIsInstance(formatter._style, logging.PercentStyle) # level is not explicitely set - self.assertEqual(logging.root.level, logging.WARNING) + self.assertEqual(logging.root.level, self.original_logging_level) def test_filename(self): logging.basicConfig(filename='test.log')