[pypy-svn] r51272 - pypy/branch/jit-refactoring/pypy/jit/rainbow/test

cfbolz at codespeak.net cfbolz at codespeak.net
Mon Feb 4 22:17:26 CET 2008


Author: cfbolz
Date: Mon Feb  4 22:17:26 2008
New Revision: 51272

Modified:
   pypy/branch/jit-refactoring/pypy/jit/rainbow/test/test_interpreter.py
Log:
this one works


Modified: pypy/branch/jit-refactoring/pypy/jit/rainbow/test/test_interpreter.py
==============================================================================
--- pypy/branch/jit-refactoring/pypy/jit/rainbow/test/test_interpreter.py	(original)
+++ pypy/branch/jit-refactoring/pypy/jit/rainbow/test/test_interpreter.py	Mon Feb  4 22:17:26 2008
@@ -677,7 +677,6 @@
         assert res == 4 * 4
 
     def test_degenerate_with_voids(self):
-        py.test.skip("arrays and structs are not working")
         S = lltype.GcStruct('S', ('y', lltype.Void),
                                  ('x', lltype.Signed))
         def ll_function():
@@ -685,8 +684,8 @@
             s.x = 123
             return s
         ll_function.convert_result = lambda s: str(s.x)
-        res = self.interpret(ll_function, [], [], policy=P_NOVIRTUAL)
-        assert res == "123"
+        res = self.interpret(ll_function, [], [])
+        assert res.x == 123
 
     def test_plus_minus_all_inlined(self):
         py.test.skip("arrays and structs are not working")



More information about the Pypy-commit mailing list