Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/pytest-dev/pytest
/ wrap_escape
Function
wrap_escape
testing/python/raises.py:14–15 ·
view source on GitHub ↗
(s: str)
Source
from the content-addressed store, hash-verified
12
13
14
def
wrap_escape(s: str) -> str:
15
return
"^"
+ re.escape(s) +
"$"
16
17
18
class
TestRaises:
Callers
7
test_raises_does_not_allow_none
Method · 0.70
test_raises_false_and_arg
Method · 0.70
test_raises_does_not_allow_empty_tuple
Method · 0.70
test_raises_match
Method · 0.70
test_raises_match_wrong_type
Method · 0.70
test_raises_context_manager_with_kwargs
Method · 0.70
test_expected_exception_is_not_a_baseexception
Method · 0.70
Calls
no outgoing calls
Tested by
7
test_raises_does_not_allow_none
Method · 0.56
test_raises_false_and_arg
Method · 0.56
test_raises_does_not_allow_empty_tuple
Method · 0.56
test_raises_match
Method · 0.56
test_raises_match_wrong_type
Method · 0.56
test_raises_context_manager_with_kwargs
Method · 0.56
test_expected_exception_is_not_a_baseexception
Method · 0.56