[pypy-svn] r38765 - pypy/dist/pypy/interpreter/pyparser/test
arigo at codespeak.net
arigo at codespeak.net
Wed Feb 14 00:15:51 CET 2007
Author: arigo
Date: Wed Feb 14 00:15:50 2007
New Revision: 38765
Modified:
pypy/dist/pypy/interpreter/pyparser/test/test_astbuilder.py
pypy/dist/pypy/interpreter/pyparser/test/test_astcompiler.py
Log:
Test fixes: forgot to update the FakeSpace, and need to skip
module-level docstring tests as the "stable" compiler (joke)
is actually where the bug that I just fixed originally came from.
Modified: pypy/dist/pypy/interpreter/pyparser/test/test_astbuilder.py
==============================================================================
--- pypy/dist/pypy/interpreter/pyparser/test/test_astbuilder.py (original)
+++ pypy/dist/pypy/interpreter/pyparser/test/test_astbuilder.py Wed Feb 14 00:15:50 2007
@@ -670,6 +670,7 @@
class FakeSpace:
w_None = None
w_str = str
+ w_basestring = basestring
w_int = int
def wrap(self,obj):
Modified: pypy/dist/pypy/interpreter/pyparser/test/test_astcompiler.py
==============================================================================
--- pypy/dist/pypy/interpreter/pyparser/test/test_astcompiler.py (original)
+++ pypy/dist/pypy/interpreter/pyparser/test/test_astcompiler.py Wed Feb 14 00:15:50 2007
@@ -152,16 +152,16 @@
return code
def check_compile(expr, target='exec', quiet=False, space=None):
- if expr == "k[v,]":
- py.test.skip('bug of the reference "stable compiler"')
if not quiet:
print "Compiling:", expr
if space is None:
space = std_space
- sc_code = compile_with_testcompiler(expr, target=target)
ac_code = compile_with_astcompiler(expr, target=target, space=space)
+ if expr == "k[v,]" or expr.startswith('"'): # module-level docstring
+ py.test.skip('comparison skipped, bug in "reference stable compiler"')
+ sc_code = compile_with_testcompiler(expr, target=target)
compare_code(ac_code, sc_code, space=space)
## def check_compile( expr ):
More information about the Pypy-commit
mailing list