Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/pre-commit/pre-commit
/ MyError
Class
MyError
tests/envcontext_test.py:88–89 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
86
87
def
test_exception_safety():
88
class
MyError(RuntimeError):
89
pass
90
91
env = {
'hello'
:
'world'
}
92
with
pytest.raises(MyError):
Callers
1
test_exception_safety
Function · 0.85
Calls
no outgoing calls
Tested by
1
test_exception_safety
Function · 0.68