Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pytest-dev/pytest
/ rewrite
Function
rewrite
testing/test_assertrewrite.py:38–41 ·
view source on GitHub ↗
(src: str)
Source
from the content-addressed store, hash-verified
36
37
38
def
rewrite(src: str) -> ast.Module:
39
tree = ast.parse(src)
40
rewrite_asserts(tree, src.encode())
41
return
tree
42
43
44
def
getmsg(
Callers
4
getmsg
Function · 0.85
test_place_initial_imports
Method · 0.85
test_location_is_set
Method · 0.85
test_dont_rewrite
Method · 0.85
Calls
2
rewrite_asserts
Function · 0.90
parse
Method · 0.45
Tested by
no test coverage detected