MCPcopy
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
14def wrap_escape(s: str) -> str:
15 return "^" + re.escape(s) + "$"
16
17
18class TestRaises:

Calls

no outgoing calls