[pypy-commit] pypy py3k: 2to3

antocuni noreply at buildbot.pypy.org
Wed Mar 21 20:40:20 CET 2012


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: py3k
Changeset: r53872:4e43431597f2
Date: 2012-03-21 20:10 +0100
http://bitbucket.org/pypy/pypy/changeset/4e43431597f2/

Log:	2to3

diff --git a/pypy/objspace/std/test/test_stringobject.py b/pypy/objspace/std/test/test_stringobject.py
--- a/pypy/objspace/std/test/test_stringobject.py
+++ b/pypy/objspace/std/test/test_stringobject.py
@@ -752,10 +752,10 @@
 
     def test_replace_overflow(self):
         import sys
-        if sys.maxint > 2**31-1:
+        if sys.maxsize > 2**31-1:
             skip("Wrong platform")
         s = b"a" * (2**16)
-        raises(OverflowError, s.replace, "", s)
+        raises(OverflowError, s.replace, b"", s)
 
     def test_getslice(self):
         s = b"abc"


More information about the pypy-commit mailing list