Home
last modified time | relevance | path

Searched refs:ast2 (Results 1 – 4 of 4) sorted by relevance

/external/python/cpython2/Demo/parser/
Dtest_unparse.py77 def assertASTEqual(self, ast1, ast2): argument
79 dump2 = ast.dump(ast2)
80 self.assertEqual(ast.dump(ast1), ast.dump(ast2))
87 ast2 = compile(code2, filename, "exec", ast.PyCF_ONLY_AST)
88 self.assertASTEqual(ast1, ast2)
/external/python/cpython3/Lib/test/test_tools/
Dtest_unparse.py123 def assertASTEqual(self, ast1, ast2): argument
124 self.assertEqual(ast.dump(ast1), ast.dump(ast2))
131 ast2 = compile(code2, filename, "exec", ast.PyCF_ONLY_AST)
132 self.assertASTEqual(ast1, ast2)
/external/python/cpython2/Lib/test/
Dtest_ast.py368 ast2 = mod.loads(mod.dumps(ast, protocol))
369 self.assertEqual(to_tuple(ast2), to_tuple(ast))
/external/python/cpython3/Lib/test/
Dtest_ast.py392 ast2 = mod.loads(mod.dumps(ast, protocol))
393 self.assertEqual(to_tuple(ast2), to_tuple(ast))