Skip to content

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

Merged
bluetech merged 1 commit intopytest-dev:mainfrom
pllim:patch-1
Feb 8, 2022
Merged

DOC: pytest.warns() fails on zero warning#9611
bluetech merged 1 commit intopytest-dev:mainfrom
pllim:patch-1

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