Searched refs:ast2 (Results 1 – 4 of 4) sorted by relevance
/external/python/cpython2/Demo/parser/ |
D | test_unparse.py | 77 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/ |
D | test_unparse.py | 123 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/ |
D | test_ast.py | 368 ast2 = mod.loads(mod.dumps(ast, protocol)) 369 self.assertEqual(to_tuple(ast2), to_tuple(ast))
|
/external/python/cpython3/Lib/test/ |
D | test_ast.py | 392 ast2 = mod.loads(mod.dumps(ast, protocol)) 393 self.assertEqual(to_tuple(ast2), to_tuple(ast))
|