[pypy-commit] pypy py3k: ints are always PyLongs

pjenvey noreply at buildbot.pypy.org
Sat Apr 6 02:27:40 CEST 2013


Author: Philip Jenvey <pjenvey at underboss.org>
Branch: py3k
Changeset: r63081:7ecf4bccf4c9
Date: 2013-04-05 17:26 -0700
http://bitbucket.org/pypy/pypy/changeset/7ecf4bccf4c9/

Log:	ints are always PyLongs

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
@@ -50,11 +50,11 @@
         assert api.PyLong_CheckExact(w_l)
 
         w_i = space.wrap(sys.maxint)
-        assert not api.PyLong_Check(w_i)
-        assert not api.PyLong_CheckExact(w_i)
+        assert api.PyLong_Check(w_i)
+        assert api.PyLong_CheckExact(w_i)
 
         L = space.appexec([], """():
-            class L(long):
+            class L(int):
                 pass
             return L
         """)


More information about the pypy-commit mailing list