[pypy-svn] r41605 - pypy/dist/pypy/rpython/test

fijal at codespeak.net fijal at codespeak.net
Thu Mar 29 10:45:45 CEST 2007


Author: fijal
Date: Thu Mar 29 10:45:44 2007
New Revision: 41605

Modified:
   pypy/dist/pypy/rpython/test/test_rlist.py
Log:
Fix this test as well


Modified: pypy/dist/pypy/rpython/test/test_rlist.py
==============================================================================
--- pypy/dist/pypy/rpython/test/test_rlist.py	(original)
+++ pypy/dist/pypy/rpython/test/test_rlist.py	Thu Mar 29 10:45:44 2007
@@ -11,6 +11,7 @@
 from pypy.translator.translator import TranslationContext
 from pypy.objspace.flow.model import Constant, Variable
 from pypy.rpython.test.tool import BaseRtypingTest, LLRtypeMixin, OORtypeMixin
+import re
 
 # undo the specialization parameter
 for n1 in 'get set del'.split():
@@ -824,6 +825,7 @@
             return str(x)+";"+str(l)
         res = self.ll_to_string(self.interpret(fn, []))
         res = res.replace('pypy.rpython.test.test_rlist.', '')
+        res = re.sub(' at 0x[a-z0-9]+', '', res)
         assert res == '<Foo object>;[<Foo object>, <Bar object>, <Bar object>, <Foo object>, <Foo object>]'
 
         def fn():
@@ -839,6 +841,7 @@
             return str(l)
         res = self.ll_to_string(self.interpret(fn, []))
         res = res.replace('pypy.rpython.test.test_rlist.', '')        
+        res = re.sub(' at 0x[a-z0-9]+', '', res)
         assert res == '[<Foo object>, <Bar object>, <Bar object>, <Foo object>, <Foo object>]'
 
     def test_list_slice_minusone(self):



More information about the Pypy-commit mailing list