Author: Philip Jenvey <pjen...@underboss.org>
Branch: py3k
Changeset: r61436:77234913b6d6
Date: 2013-02-18 18:34 -0800
http://bitbucket.org/pypy/pypy/changeset/77234913b6d6/

Log:    2to3

diff --git a/pypy/objspace/std/test/test_obj.py 
b/pypy/objspace/std/test/test_obj.py
--- a/pypy/objspace/std/test/test_obj.py
+++ b/pypy/objspace/std/test/test_obj.py
@@ -32,7 +32,7 @@
             skip("on CPython >= 2.7, id != hash")
         import sys
         o = object()
-        assert (hash(o) & sys.maxint) == (id(o) & sys.maxint)
+        assert (hash(o) & sys.maxsize) == (id(o) & sys.maxsize)
 
     def test_hash_method(self):
         o = object()
@@ -52,7 +52,7 @@
             pass
         x = X()
         if self.cpython_behavior and self.cpython_version < (2, 7):
-            assert (hash(x) & sys.maxint) == (id(x) & sys.maxint)
+            assert (hash(x) & sys.maxsize) == (id(x) & sys.maxsize)
         assert hash(x) == object.__hash__(x)
 
     def test_reduce_recursion_bug(self):
@@ -189,8 +189,8 @@
         for i in range(10):
             l.append(float(i))
             l.append(i + 0.1)
-            l.append(i + sys.maxint)
-            l.append(i - sys.maxint)
+            l.append(i + sys.maxsize)
+            l.append(i - sys.maxsize)
             l.append(i + 1j)
             l.append(1 + i * 1j)
             s = str(i)
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to