Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix: properly clean up after running setup_root_logging in test_log #1259

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions test/test_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import io
import logging
import re
import sys
import typing
import unittest
from unittest.mock import patch
Expand Down Expand Up @@ -50,6 +51,7 @@ def logger():
logger = logging.getLogger()
yield logger
logging.getLogger().handlers.clear()
sys.excepthook = sys.__excepthook__


class TestLogging:
Expand Down
Loading