[pypy-commit] pypy default: 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

antocuni noreply at buildbot.pypy.org
Thu Apr 19 09:58:48 CEST 2012


Author: Antonio Cuni <anto.cuni at gmail.com>
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


More information about the pypy-commit mailing list