Skip to content

DOC: pytest.warns() fails on zero warning #9611

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

Merged
merged 1 commit into from
Feb 8, 2022
Merged

Conversation

pllim
Copy link
Contributor

@pllim pllim commented Feb 4, 2022

Follow up of #9495 . Turns out pytest.warns() is not a drop-in replacement for the way we use pytest.warns(None) (astropy/astropy#12823). "Any" in the doc got me to believe that it will pass even with zero warning but the test fails when there is no warning with this, so this is an attempt to improve a doc a bit more.

p.s. This does not need a change log and I don't think a one word change qualify my name on authors list.

@nicoddemus
Copy link
Member

Thanks!

@bluetech bluetech merged commit 04a6f52 into pytest-dev:main Feb 8, 2022
@pllim pllim deleted the patch-1 branch February 8, 2022 14:33
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.

3 participants