From 8fc1c8789d98126d11e133248dd188fca0604c30 Mon Sep 17 00:00:00 2001 From: Tony Meyer Date: Wed, 12 Jun 2024 14:39:10 +1200 Subject: [PATCH] Properly clean up after running setup_root_logging. --- test/test_log.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/test_log.py b/test/test_log.py index 5682703d0..f7c31167d 100644 --- a/test/test_log.py +++ b/test/test_log.py @@ -15,6 +15,7 @@ import io import logging import re +import sys import typing import unittest from unittest.mock import patch @@ -50,6 +51,7 @@ def logger(): logger = logging.getLogger() yield logger logging.getLogger().handlers.clear() + sys.excepthook = sys.__excepthook__ class TestLogging: