[Python-checkins] r64078 - python/branches/tlee-ast-optimize/Lib/test/test_ast.py

thomas.lee python-checkins at python.org
Tue Jun 10 17:38:23 CEST 2008


Author: thomas.lee
Date: Tue Jun 10 17:38:23 2008
New Revision: 64078
Log:
Botched up an earlier merge. Test is still broken, but ready for the future when we make a decision about parse() and compile() with optimization turned on & off.
Modified:
 python/branches/tlee-ast-optimize/Lib/test/test_ast.py
Modified: python/branches/tlee-ast-optimize/Lib/test/test_ast.py
==============================================================================
--- python/branches/tlee-ast-optimize/Lib/test/test_ast.py	(original)
+++ python/branches/tlee-ast-optimize/Lib/test/test_ast.py	Tue Jun 10 17:38:23 2008
@@ -142,7 +142,7 @@
 (single_tests, single_results, "single"),
 (eval_tests, eval_results, "eval")):
 for i, o in itertools.izip(input, output):
- flags = _ast.PyCF_ONLY_AST | _ast.PyCF_NO_OPTIMIZE
+ flags = ast.PyCF_ONLY_AST | ast.PyCF_NO_OPTIMIZE
 ast_tree = compile(i, "?", kind, flags)
 self.assertEquals(to_tuple(ast_tree), o)
 self._assert_order(ast_tree, (0, 0))


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /