()
| 191 | |
| 192 | |
| 193 | def test_warns_none_is_deprecated(): |
| 194 | with pytest.warns( |
| 195 | PytestDeprecationWarning, |
| 196 | match=re.escape( |
| 197 | "Passing None has been deprecated.\n" |
| 198 | "See https://docs.pytest.org/en/latest/how-to/capture-warnings.html" |
| 199 | "#additional-use-cases-of-warnings-in-tests" |
| 200 | " for alternatives in common use cases." |
| 201 | ), |
| 202 | ): |
| 203 | with pytest.warns(None): # type: ignore[call-overload] |
| 204 | pass |
| 205 | |
| 206 | |
| 207 | class TestSkipMsgArgumentDeprecated: |
nothing calls this directly
no outgoing calls
no test coverage detected