[pypy-svn] pypy default: Fix this test: passing a Python long to PyLong_FromLong() hits some assert now.
arigo
commits-noreply at bitbucket.org
Tue Feb 8 13:32:23 CET 2011
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r41697:25f385082dd7
Date: 2011-02-08 11:44 +0100
http://bitbucket.org/pypy/pypy/changeset/25f385082dd7/
Log: Fix this test: passing a Python long to PyLong_FromLong() hits some
assert now.
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
@@ -12,9 +12,9 @@
assert isinstance(value, W_LongObject)
assert space.unwrap(value) == 3
- value = api.PyLong_FromLong(sys.maxint + 1)
+ value = api.PyLong_FromLong(sys.maxint)
assert isinstance(value, W_LongObject)
- assert space.unwrap(value) == sys.maxint + 1 # should obviously fail but doesnt
+ assert space.unwrap(value) == sys.maxint
def test_aslong(self, space, api):
w_value = api.PyLong_FromLong((sys.maxint - 1) / 2)
More information about the Pypy-commit
mailing list