Method
test_raises_function
testing/python/raises.py:28–31
· testing/python/raises.py::TestRaises.test_raises_function
(self)
Source from the content-addressed store, hash-verified
| 26 | assert class="st">"invalid literal" in str(excinfo.value) |
| 27 | |
| 28 | def test_raises_function(self): |
| 29 | with pytest.raises(ValueError) as excinfo: |
| 30 | int(class="st">"hello") |
| 31 | assert class="st">"invalid literal" in str(excinfo.value) |
| 32 | |
| 33 | def test_raises_does_not_allow_none(self): |
| 34 | with pytest.raises( |
Callers
nothing calls this directly
Tested by
no test coverage detected