1. Pypy
  2. Untitled project
  3. pypy

Commits

Philip Jenvey  committed 573f90a

don't hardcode maxsize

  • Participants
  • Parent commits d531b90
  • Branches py3k

Comments (0)

Files changed (1)

File pypy/module/cpyext/test/test_longobject.py

View file
 
     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