[pypy-svn] r68648 - pypy/branch/gc-arena/pypy/translator/c/test

arigo at codespeak.net arigo at codespeak.net
Mon Oct 19 20:51:07 CEST 2009


Author: arigo
Date: Mon Oct 19 20:51:07 2009
New Revision: 68648

Modified:
   pypy/branch/gc-arena/pypy/translator/c/test/test_newgc.py
Log:
Improve the test.


Modified: pypy/branch/gc-arena/pypy/translator/c/test/test_newgc.py
==============================================================================
--- pypy/branch/gc-arena/pypy/translator/c/test/test_newgc.py	(original)
+++ pypy/branch/gc-arena/pypy/translator/c/test/test_newgc.py	Mon Oct 19 20:51:07 2009
@@ -902,9 +902,9 @@
             s.append("abcd")
             s.append("defg")
             s.append("rty")
-            s.append_multiple_char('y', 1000)
+            s.append_multiple_char('z', 1000)
             gc.collect()
-            s.append_multiple_char('y', 1000)
+            s.append_multiple_char('u', 1000)
             res = s.build()
             gc.collect()
             return res
@@ -912,7 +912,7 @@
 
     def test_string_builder_over_allocation(self):
         res = self.run('string_builder_over_allocation')
-        assert res[1000] == 'y'
+        assert res == 'abcddefgrty' * 1000*'z' + 1000*'u'
 
 class TestGenerationalGC(TestSemiSpaceGC):
     gcpolicy = "generation"



More information about the Pypy-commit mailing list