Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/pytest-dev/pytest
/ wrap_escape
Function
wrap_escape
testing/python/raises_group.py:24–25 ·
view source on GitHub ↗
(s: str)
Source
from the content-addressed store, hash-verified
22
23
24
def
wrap_escape(s: str) -> str:
25
return
"^"
+ re.escape(s) +
"$"
26
27
28
def
fails_raises_group(msg: str, add_prefix: bool = True) -> RaisesExc[Failed]:
Callers
6
fails_raises_group
Function · 0.70
test_raises_group
Function · 0.70
test_raisesexc
Function · 0.70
test_assert_matches
Function · 0.70
test_annotated_group
Function · 0.70
test_tuples
Function · 0.70
Calls
no outgoing calls
Tested by
5
test_raises_group
Function · 0.56
test_raisesexc
Function · 0.56
test_assert_matches
Function · 0.56
test_annotated_group
Function · 0.56
test_tuples
Function · 0.56