-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
Labels
plugin: warningsrelated to the warnings builtin pluginrelated to the warnings builtin plugintype: enhancementnew feature or API change, should be merged into features branchnew feature or API change, should be merged into features branch
Description
with pytest.warns(None): has the same effect as with pytest.warns(Warning):, but is often confused with the meaning "does not emit any warning". I think we should therefore:
- change the docs to show
with pytest.warns()(no arguments) as the catch-anything default - change the default argument from
NonetoWarning - emit a deprecation warning if passed
None, and treat it asWarning(for now)
I'm saving this one for the Mentored Sprints - experienced contributors please wait a week or so 😃
kumiDa
Metadata
Metadata
Assignees
Labels
plugin: warningsrelated to the warnings builtin pluginrelated to the warnings builtin plugintype: enhancementnew feature or API change, should be merged into features branchnew feature or API change, should be merged into features branch