Skip to content

Ignore expected warnings in tests #67

New issue

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

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

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

adrianlipow
Copy link
Contributor

@adrianlipow adrianlipow commented Oct 22, 2024

Since #63 added the warnings module, running tests now displays a summary of all warnings. We could suppress those via the --disable-warnings flag, but it probably makes sense not to have to remember that every time we run tests (and this suppresses all warnings, even those we might not be expecting and want to see).

We have a set of tests where we expect warnings and test for their existence, so we can tell pytest to ignore warnings on those tests. This cleans up the output of running tests.

… to be present and expect them, so no need to display them at the end of testing as well.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant