Skip to content

Commit

Permalink
Remove test
Browse files Browse the repository at this point in the history
  • Loading branch information
Agent-Hellboy committed Dec 7, 2024
1 parent 9a85157 commit 53fb2eb
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions Lib/test/test_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -3554,26 +3554,6 @@ def test_config15_ok(self):
handler = logging.root.handlers[0]
self.addCleanup(closeFileHandler, handler, fn)

def test_disable_existing_loggers(self):
fn = make_temp_file(".log", "test_logging-disable-existing-loggers-")
file_handler = logging.FileHandler(fn, mode="w")
file_handler.setFormatter(logging.Formatter("%(message)s"))
root_logger = logging.getLogger()
root_logger.addHandler(file_handler)

config = {"version": 1, "disable_existing_loggers": False}

# we have disable_existing_loggers=False,
# so, all handlers should continue working
self.apply_config(config)

msg = "test message"
logging.warning(msg)
file_handler.close()
with open(fn, encoding='utf-8') as f:
data = f.read().strip()
os.remove(fn)
self.assertEqual(data, msg)

def test_config16_ok(self):
self.apply_config(self.config16)
Expand Down

0 comments on commit 53fb2eb

Please sign in to comment.