[pypy-svn] r16700 - pypy/release/0.7.x/pypy/interpreter/pyparser/test
ludal at codespeak.net
ludal at codespeak.net
Fri Aug 26 22:43:37 CEST 2005
Author: ludal
Date: Fri Aug 26 22:43:34 2005
New Revision: 16700
Modified:
pypy/release/0.7.x/pypy/interpreter/pyparser/test/test_astbuilder.py
pypy/release/0.7.x/pypy/interpreter/pyparser/test/test_samples.py
Log:
fixed the tests broken by the change to Transformer
Modified: pypy/release/0.7.x/pypy/interpreter/pyparser/test/test_astbuilder.py
==============================================================================
--- pypy/release/0.7.x/pypy/interpreter/pyparser/test/test_astbuilder.py (original)
+++ pypy/release/0.7.x/pypy/interpreter/pyparser/test/test_astbuilder.py Fri Aug 26 22:43:34 2005
@@ -534,7 +534,7 @@
return builder
def tuple_parse_expr(expr, target='single'):
- t = Transformer()
+ t = Transformer("dummyfile")
return ast_from_input(expr, target, t)
def check_expression(expr, target='single'):
Modified: pypy/release/0.7.x/pypy/interpreter/pyparser/test/test_samples.py
==============================================================================
--- pypy/release/0.7.x/pypy/interpreter/pyparser/test/test_samples.py (original)
+++ pypy/release/0.7.x/pypy/interpreter/pyparser/test/test_samples.py Fri Aug 26 22:43:34 2005
@@ -100,7 +100,7 @@
# compare the two tuples by transforming them into AST, to hide irrelevant
# differences -- typically newlines at the end of the tree.
print 'Comparing the ASTs of', testname
- transformer1 = PyPyTransformer()
+ transformer1 = PyPyTransformer("")
ast_pypy = transformer1.compile_node(pypy_tuples)
repr_pypy = repr(ast_pypy)
More information about the Pypy-commit
mailing list