MCPcopy Create free account
hub / github.com/python/cpython / ast_repr_update_snapshots

Function ast_repr_update_snapshots

Lib/test/test_ast/test_ast.py:47–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45
46
47def ast_repr_update_snapshots() -> None:
48 data = [repr(ast.parse(test)) for test in ast_repr_get_test_cases()]
49 AST_REPR_DATA_FILE.write_text("\n".join(data))
50
51
52class LazyImportTest(unittest.TestCase):

Callers 1

test_ast.pyFile · 0.85

Calls 4

ast_repr_get_test_casesFunction · 0.85
parseMethod · 0.45
write_textMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…