Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/pytest-dev/pytest
/ test_raises
Method
test_raises
doc/en/example/assertion/failure_demo.py:166–168 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
164
165
class
TestRaises:
166
def
test_raises(self):
167
s =
"qwe"
168
raises(TypeError, int, s)
169
170
def
test_raises_doesnt(self):
171
raises(OSError, int,
"3"
)
Callers
nothing calls this directly
Calls
1
raises
Function · 0.90
Tested by
no test coverage detected