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

Conversation

tonyandrewmeyer
Copy link
Contributor

Calling setup_root_logging changes sys.excepthook. The tests should undo this in the same way that they clear out the logging handlers that setup_root_logging adds.

Copy link
Collaborator

@benhoyt benhoyt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@tonyandrewmeyer tonyandrewmeyer merged commit 2a648c7 into canonical:main Jun 12, 2024
26 checks passed
@tonyandrewmeyer tonyandrewmeyer deleted the cleanup-excepthook-in-test branch June 12, 2024 04:14
tonyandrewmeyer added a commit to tonyandrewmeyer/operator that referenced this pull request Jun 26, 2024
…anonical#1259)

Calling `setup_root_logging` changes `sys.excepthook`. The tests should
undo this in the same way that they clear out the logging handlers that
`setup_root_logging` adds.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants