(self)
| 16 | assert "invalid literal" in str(excinfo.value) |
| 17 | |
| 18 | def test_raises_function(self): |
| 19 | excinfo = pytest.raises(ValueError, int, "hello") |
| 20 | assert "invalid literal" in str(excinfo.value) |
| 21 | |
| 22 | def test_raises_callable_no_exception(self) -> None: |
| 23 | class A: |
nothing calls this directly
no outgoing calls
no test coverage detected