Method
test_raises
testing/python/raises.py:23–26
· testing/python/raises.py::TestRaises.test_raises
(self)
Source from the content-addressed store, hash-verified
| 21 | pytest.raises(RuntimeError, class="st">"int(&class="cm">#x27;qwe')") # type: ignore[call-overload] |
| 22 | |
| 23 | def test_raises(self): |
| 24 | with pytest.raises(ValueError) as excinfo: |
| 25 | int(class="st">"qwe") |
| 26 | assert class="st">"invalid literal" in str(excinfo.value) |
| 27 | |
| 28 | def test_raises_function(self): |
| 29 | with pytest.raises(ValueError) as excinfo: |
Callers
nothing calls this directly
Tested by
no test coverage detected