mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Attempt fix of #11557 by refining setup/teardown logic.
This commit is contained in:
parent
95bf50416e
commit
1e42f9e4c0
1 changed files with 2 additions and 0 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue