Author: Antonio Cuni <[email protected]>
Branch: 
Changeset: r54519:fb765e0d956e
Date: 2012-04-19 09:57 +0200
http://bitbucket.org/pypy/pypy/changeset/fb765e0d956e/

Log:    don't use the L notation (not supported in py3k), and use a value
        which is big enough not to fit a word on 64bit cpus

diff --git a/pypy/objspace/std/test/test_stringformat.py 
b/pypy/objspace/std/test/test_stringformat.py
--- a/pypy/objspace/std/test/test_stringformat.py
+++ b/pypy/objspace/std/test/test_stringformat.py
@@ -295,8 +295,8 @@
         assert u'%x' % ten == 'a'
 
     def test_long_no_overflow(self):
-        big = 100000000000L
-        assert "%x" % big == "174876e800"
+        big = 0x1234567890987654321
+        assert "%x" % big == "1234567890987654321"
 
     def test_missing_cases(self):
         big = -123456789012345678901234567890L
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to