From 1e78e941ee9ea4d8698e9e37dc3de59b2db743a9 Mon Sep 17 00:00:00 2001 From: sneakers-the-rat Date: Mon, 11 Nov 2024 19:50:59 -0800 Subject: [PATCH] oh there's a clear method lol --- tests/test_logging.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/test_logging.py b/tests/test_logging.py index 70e89928..18d8b8ee 100644 --- a/tests/test_logging.py +++ b/tests/test_logging.py @@ -20,8 +20,7 @@ def reset_root_logger(): Before each test, reset the root logger """ root_logger = logging.getLogger("miniscope_io") - for handler in root_logger.handlers: - root_logger.removeHandler(handler) + root_logger.handlers.clear() def test_init_logger(capsys, tmp_path):