mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Avoid test_logging failure when run after test_unittest, by renaming a conflicting logger
This commit is contained in:
parent
0715b9fad3
commit
04d4d6a3aa
1 changed files with 1 additions and 1 deletions
|
@ -1345,7 +1345,7 @@ class ConfigFileTest(BaseTest):
|
|||
|
||||
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue