[pypy-svn] r78194 - pypy/branch/ootype-virtualrefs/pypy/rlib/test

dan at codespeak.net dan at codespeak.net
Fri Oct 22 11:45:43 CEST 2010


Author: dan
Date: Fri Oct 22 11:45:41 2010
New Revision: 78194

Modified:
   pypy/branch/ootype-virtualrefs/pypy/rlib/test/test__jit_vref.py
Log:
Fixed the tests a bit more.

Modified: pypy/branch/ootype-virtualrefs/pypy/rlib/test/test__jit_vref.py
==============================================================================
--- pypy/branch/ootype-virtualrefs/pypy/rlib/test/test__jit_vref.py	(original)
+++ pypy/branch/ootype-virtualrefs/pypy/rlib/test/test__jit_vref.py	Fri Oct 22 11:45:41 2010
@@ -85,7 +85,7 @@
         def f():
             return virtual_ref(X())
         x = self.interpret(f, [])
-        self.is_of_instance_type(x)
+        assert self.is_of_instance_type(x)
 
     def test_rtype_2(self):
         def f():
@@ -104,7 +104,7 @@
             else:
                 return non_virtual_ref(Z())
         x = self.interpret(f, [-5])
-        assert lltype.typeOf(x) == OBJECTPTR
+        assert self.is_of_instance_type(x)
 
     def test_rtype_4(self):
         def f(n):
@@ -113,7 +113,7 @@
             else:
                 return vref_None
         x = self.interpret(f, [-5])
-        assert lltype.typeOf(x) == OBJECTPTR
+        assert self.is_of_instance_type(x)
         assert not x
 
 class TestLLtype(BaseTestVRef, LLRtypeMixin):



More information about the Pypy-commit mailing list