[pypy-commit] pypy default: fix the test for 32bit

fijal noreply at buildbot.pypy.org
Fri Feb 15 10:49:33 CET 2013


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: 
Changeset: r61248:57adf4d24214
Date: 2013-02-15 11:48 +0200
http://bitbucket.org/pypy/pypy/changeset/57adf4d24214/

Log:	fix the test for 32bit

diff --git a/rpython/rlib/test/test_rarithmetic.py b/rpython/rlib/test/test_rarithmetic.py
--- a/rpython/rlib/test/test_rarithmetic.py
+++ b/rpython/rlib/test/test_rarithmetic.py
@@ -400,8 +400,8 @@
     
     assert rffi.cast(lltype.Signed, byteswap(rffi.cast(rffi.USHORT, 0x0102))) == 0x0201
     assert rffi.cast(lltype.Signed, byteswap(rffi.cast(rffi.INT, 0x01020304))) == 0x04030201
-    assert byteswap(rffi.cast(rffi.ULONGLONG, 0x0102030405060708L)) == 0x0807060504030201L
-    assert byteswap(rffi.cast(rffi.LONGLONG, 0x0102030405060708L)) == 0x0807060504030201L
+    assert byteswap(r_ulonglong(0x0102030405060708L)) == r_ulonglong(0x0807060504030201L)
+    assert byteswap(r_longlong(0x0102030405060708L)) == r_longlong(0x0807060504030201L)
     assert ((byteswap(2.3) - 1.903598566252326e+185) / 1e185) < 0.000001
     assert (rffi.cast(lltype.Float, byteswap(rffi.cast(lltype.SingleFloat, 2.3))) - 4.173496037651603e-08) < 1e-16
 


More information about the pypy-commit mailing list