[pypy-svn] r44576 - pypy/dist/pypy/objspace/std/test

fijal at codespeak.net fijal at codespeak.net
Thu Jun 28 10:37:39 CEST 2007


Author: fijal
Date: Thu Jun 28 10:37:39 2007
New Revision: 44576

Modified:
   pypy/dist/pypy/objspace/std/test/test_strjoinobject.py
Log:
Make it run on top of cpy 2.5


Modified: pypy/dist/pypy/objspace/std/test/test_strjoinobject.py
==============================================================================
--- pypy/dist/pypy/objspace/std/test/test_strjoinobject.py	(original)
+++ pypy/dist/pypy/objspace/std/test/test_strjoinobject.py	Thu Jun 28 10:37:39 2007
@@ -10,7 +10,9 @@
 
     def test_basic(self):
         import __pypy__
-        s = "Hello, " + "World!"
+        # cannot do "Hello, " + "World!" because cpy2.5 optimises this
+        # away on AST level (no idea why it doesn't this one)
+        s = "Hello, ".__add__("World!")
         assert type(s) is str
         assert 'W_StringJoinObject' in __pypy__.internal_repr(s)
 



More information about the Pypy-commit mailing list