(self)
| 404 | assert pytest.warns(UserWarning, f) != "10" # type: ignore[comparison-overlap] |
| 405 | |
| 406 | def test_warns_context_manager_with_kwargs(self) -> None: |
| 407 | with pytest.raises(TypeError) as excinfo: |
| 408 | with pytest.warns(UserWarning, foo="bar"): # type: ignore |
| 409 | pass |
| 410 | assert "Unexpected keyword arguments" in str(excinfo.value) |
nothing calls this directly
no outgoing calls
no test coverage detected