Author: Armin Rigo <ar...@tunes.org>
Branch: 
Changeset: r77353:4bd19526f839
Date: 2015-05-17 17:40 +0200
http://bitbucket.org/pypy/pypy/changeset/4bd19526f839/

Log:    fix this test (fails in x86/test/test_fficall.py)

diff --git a/rpython/jit/metainterp/test/test_fficall.py 
b/rpython/jit/metainterp/test/test_fficall.py
--- a/rpython/jit/metainterp/test/test_fficall.py
+++ b/rpython/jit/metainterp/test/test_fficall.py
@@ -53,15 +53,12 @@
 
         cif_description = get_description(atypes, rtype)
 
-        expected_args = []
-        for avalue in avalues:
-            if lltype.typeOf(avalue) == rffi.ULONG:
-                avalue = intmask(avalue)
-            expected_args.append(avalue)
-        expected_args = tuple(expected_args)
-
         def verify(*args):
-            assert args == expected_args
+            for a, exp_a in zip(args, avalues):
+                if (lltype.typeOf(exp_a) == rffi.ULONG and
+                    lltype.typeOf(a) == lltype.Signed):
+                    a = rffi.cast(rffi.ULONG, a)
+                assert a == exp_a
             return rvalue
         FUNC = lltype.FuncType([lltype.typeOf(avalue) for avalue in avalues],
                                lltype.typeOf(rvalue))
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to