test_ok2/changelog/8645.improvement.rst

5 lines
203 B
ReStructuredText

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`.