Avoid test_logging failure when run after test_unittest, by renaming a conflicting logger

This commit is contained in:
Antoine Pitrou 2013-09-14 21:16:39 +02:00
parent 0715b9fad3
commit 04d4d6a3aa
1 changed files with 1 additions and 1 deletions

View File

@ -1345,7 +1345,7 @@ class ConfigFileTest(BaseTest):
def test_logger_disabling(self): def test_logger_disabling(self):
self.apply_config(self.disable_test) self.apply_config(self.disable_test)
logger = logging.getLogger('foo') logger = logging.getLogger('some_pristine_logger')
self.assertFalse(logger.disabled) self.assertFalse(logger.disabled)
self.apply_config(self.disable_test) self.apply_config(self.disable_test)
self.assertTrue(logger.disabled) self.assertTrue(logger.disabled)