Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ parse
Method
parse
Lib/test/test_ast/test_ast.py:777–778 ·
view source on GitHub ↗
(a, b)
Source
from the content-addressed store, hash-verified
775
776
def
test_compare_attributes_option(self):
777
def
parse(a, b):
778
return
ast.parse(a), ast.parse(b)
779
780
a, b = parse(
"2 + 2"
,
"2+2"
)
781
self.assertTrue(ast.compare(a, b))
Callers
15
ast_repr_update_snapshots
Function · 0.45
test_ast_validation
Method · 0.45
test_optimization_levels__debug__
Method · 0.45
test_invalid_position_information
Method · 0.45
test_negative_locations_for_compile
Method · 0.45
test_docstring_optimization_single_node
Method · 0.45
test_docstring_optimization_multiple_nodes
Method · 0.45
test_slice
Method · 0.45
test_from_import
Method · 0.45
test_non_interned_future_from_ast
Method · 0.45
test_alias
Method · 0.45
test_empty_yield_from
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected