[Python-checkins] cpython: Avoid test_logging failure when run after test_unittest, by renaming a
antoine.pitrou
python-checkins at python.org
Sat Sep 14 21:16:45 CEST 2013
http://hg.python.org/cpython/rev/1dc925ee441a
changeset: 85702:1dc925ee441a
user: Antoine Pitrou <solipsis at pitrou.net>
date: Sat Sep 14 21:16:39 2013 +0200
summary:
Avoid test_logging failure when run after test_unittest, by renaming a conflicting logger
files:
Lib/test/test_logging.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
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
@@ -1345,7 +1345,7 @@
def test_logger_disabling(self):
self.apply_config(self.disable_test)
- logger = logging.getLogger('foo')
+ logger = logging.getLogger('some_pristine_logger')
self.assertFalse(logger.disabled)
self.apply_config(self.disable_test)
self.assertTrue(logger.disabled)
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list