Catch any warning on warns with no arg passed
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
Reducing confusion from `pytest.warns(None)` by:
|
||||
|
||||
- Allowing no arguments to be passed in order to catch any exception (no argument defaults to `Warning`).
|
||||
- Emit a deprecation warning if passed `None`.
|
||||
Reference in New Issue
Block a user