mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Fix the compiler package w.r.t. the new metaclass syntax.
(It is still broken w.r.t. the new nonlocal keyword.) Remove a series of debug prints I accidentally left in test_ast.py.
This commit is contained in:
parent
801dd73653
commit
d16e81aabe
7 changed files with 40 additions and 30 deletions
|
@ -144,13 +144,9 @@ def run_tests():
|
|||
(eval_tests, eval_results, "eval")):
|
||||
for i, o in itertools.izip(input, output):
|
||||
ast_tree = compile(i, "?", kind, 0x400)
|
||||
if to_tuple(ast_tree) != o:
|
||||
print("i=", i)
|
||||
print("o=", o)
|
||||
print("kind=", kind)
|
||||
print("tree=", ast_tree)
|
||||
print("tuple=", to_tuple(ast_tree))
|
||||
assert to_tuple(ast_tree) == o
|
||||
tup = to_tuple(ast_tree)
|
||||
assert tup == o, ("kind=%r\ninput=%r\nexpected=%r\ngot=%r" %
|
||||
(kind, i, o, tup))
|
||||
test_order(ast_tree, (0, 0))
|
||||
|
||||
#### EVERYTHING BELOW IS GENERATED #####
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue