[pypy-svn] r15824 - pypy/dist/pypy/interpreter/pyparser/test
adim at codespeak.net
adim at codespeak.net
Tue Aug 9 16:48:10 CEST 2005
Author: adim
Date: Tue Aug 9 16:48:09 2005
New Revision: 15824
Modified:
pypy/dist/pypy/interpreter/pyparser/test/test_samples.py
Log:
hackish workaround to make test pass even if empty lists are used instead of empty tuples in stablecompiler
Modified: pypy/dist/pypy/interpreter/pyparser/test/test_samples.py
==============================================================================
--- pypy/dist/pypy/interpreter/pyparser/test/test_samples.py (original)
+++ pypy/dist/pypy/interpreter/pyparser/test/test_samples.py Tue Aug 9 16:48:09 2005
@@ -104,8 +104,16 @@
# XXX hack:
# hide the more common difference between 2.3 and 2.4, which is
# Function(None, ...) where 'None' stands for no decorator in 2.4
- repr_pypy = repr_pypy .replace("Function(None, ", "Function(")
+ repr_pypy = repr_pypy.replace("Function(None, ", "Function(")
repr_python = repr_python.replace("Function(None, ", "Function(")
+ # XXX hack(bis):
+ # we changed stablecompiler to use [] instead of () in several
+ # places (for consistency), so let's make sure the test won't fail
+ # because of that (the workaround is as drastic as the way we
+ # compare python and pypy tuples :-), but we'll change that with
+ # astbuilder.py
+ repr_pypy = repr_pypy.replace("[]", "()")
+ repr_python = repr_python.replace("[]", "()")
assert repr_pypy == repr_python
More information about the Pypy-commit
mailing list