[pypy-svn] r79680 - pypy/branch/rlist-jit/pypy/rpython/test

arigo at codespeak.net arigo at codespeak.net
Tue Nov 30 15:35:01 CET 2010


Author: arigo
Date: Tue Nov 30 15:34:59 2010
New Revision: 79680

Modified:
   pypy/branch/rlist-jit/pypy/rpython/test/test_rlist.py
Log:
Fix the test, for pypy.translator.oosupport.test.test_treebuilder.


Modified: pypy/branch/rlist-jit/pypy/rpython/test/test_rlist.py
==============================================================================
--- pypy/branch/rlist-jit/pypy/rpython/test/test_rlist.py	(original)
+++ pypy/branch/rlist-jit/pypy/rpython/test/test_rlist.py	Tue Nov 30 15:34:59 2010
@@ -1077,7 +1077,7 @@
 
         res = self.interpret(f, [0])
         assert res == 1
-        if self.rlist is ll_rlist:
+        if self.type_system == 'lltype':
             # on lltype we always get an AssertionError
             py.test.raises(AssertionError, self.interpret, f, [1])
         else:
@@ -1128,7 +1128,7 @@
 
         res = self.interpret(f, [0])
         assert res == 1
-        if self.rlist is ll_rlist:
+        if self.type_system == 'lltype':
             # on lltype we always get an AssertionError
             py.test.raises(AssertionError, self.interpret, f, [1])
         else:
@@ -1171,7 +1171,7 @@
 
         res = self.interpret(f, [0])
         assert res == 1
-        if self.rlist is ll_rlist:
+        if self.type_system == 'lltype':
             # on lltype we always get an AssertionError
             py.test.raises(AssertionError, self.interpret, f, [1])
         else:
@@ -1361,6 +1361,7 @@
                    ("y[*]" in immutable_fields)
 
 class TestLLtype(BaseTestRlist, LLRtypeMixin):
+    type_system = 'lltype'
     rlist = ll_rlist
 
     def test_memoryerror(self):
@@ -1464,3 +1465,4 @@
 
 class TestOOtype(BaseTestRlist, OORtypeMixin):
     rlist = oo_rlist
+    type_system = 'ootype'



More information about the Pypy-commit mailing list