[pypy-commit] pypy win64 test: slowly becoming independent from sys.maxint
ctismer
noreply at buildbot.pypy.org
Sat Jul 2 17:58:30 CEST 2011
Author: Christian Tismer <tismer at stackless.com>
Branch: win64 test
Changeset: r45271:0730f63c9700
Date: 2011-07-02 15:34 +0200
http://bitbucket.org/pypy/pypy/changeset/0730f63c9700/
Log: slowly becoming independent from sys.maxint
diff --git a/pypy/rpython/lltypesystem/test/test_ll2ctypes.py b/pypy/rpython/lltypesystem/test/test_ll2ctypes.py
--- a/pypy/rpython/lltypesystem/test/test_ll2ctypes.py
+++ b/pypy/rpython/lltypesystem/test/test_ll2ctypes.py
@@ -45,7 +45,7 @@
res = ctypes2lltype(lltype.SingleFloat, ctypes.c_float(-3.5))
assert isinstance(res, rffi.r_singlefloat)
assert float(res) == -3.5
- assert lltype2ctypes(rffi.r_ulong(-1)) == sys.maxint * 2 + 1
+ assert lltype2ctypes(rffi.r_ulong(-1)) == (1 << rffi.r_ulong.BITS) - 1
res = ctypes2lltype(lltype.Unsigned, sys.maxint * 2 + 1)
assert (res, type(res)) == (rffi.r_ulong(-1), rffi.r_ulong)
assert ctypes2lltype(lltype.Bool, 0) is False
More information about the pypy-commit
mailing list