(self)
| 221 | |
| 222 | class TestWarns: |
| 223 | def test_check_callable(self) -> None: |
| 224 | source = "warnings.warn('w1', RuntimeWarning)" |
| 225 | with pytest.raises(TypeError, match=r".* must be callable"): |
| 226 | pytest.warns(RuntimeWarning, source) # type: ignore |
| 227 | |
| 228 | def test_several_messages(self) -> None: |
| 229 | # different messages, b/c Python suppresses multiple identical warnings |
nothing calls this directly
no outgoing calls
no test coverage detected