Author: Philip Jenvey <[email protected]>
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
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit