[pypy-commit] pypy py3k: don't hardcode maxsize

pjenvey noreply at buildbot.pypy.org
Sun Apr 28 22:32:19 CEST 2013


Author: Philip Jenvey <pjenvey at underboss.org>
Branch: py3k
Changeset: r63737:573f90ac6468
Date: 2013-04-28 13:29 -0700
http://bitbucket.org/pypy/pypy/changeset/573f90ac6468/

Log:	don't hardcode maxsize

diff --git a/pypy/module/cpyext/test/test_longobject.py b/pypy/module/cpyext/test/test_longobject.py
--- a/pypy/module/cpyext/test/test_longobject.py
+++ b/pypy/module/cpyext/test/test_longobject.py
@@ -125,7 +125,7 @@
 
     def test_as_ulongmask(self, space, api):
         assert api.PyLong_AsUnsignedLongMask(
-            space.wrap(sys.maxsize * 2 + 1)) == 18446744073709551615
+            space.wrap(sys.maxsize * 2 + 1)) == sys.maxsize * 2 + 1
         assert api.PyLong_AsUnsignedLongMask(
             space.wrap(sys.maxsize * 2 + 2)) == 0
 


More information about the pypy-commit mailing list