mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
Quite down some FutureWarnings.
This commit is contained in:
parent
ee113f08f8
commit
266e6b1f4b
2 changed files with 6 additions and 6 deletions
|
|
@ -30,10 +30,10 @@ try:
|
||||||
except ImportError:
|
except ImportError:
|
||||||
maxint = 2147483647
|
maxint = 2147483647
|
||||||
if maxint == 2147483647:
|
if maxint == 2147483647:
|
||||||
if -2147483647-1 != 020000000000: raise TestFailed, 'max negative int'
|
if -2147483647-1 != 020000000000L: raise TestFailed, 'max negative int'
|
||||||
# XXX -2147483648
|
# XXX -2147483648
|
||||||
if 037777777777 != -1: raise TestFailed, 'oct -1'
|
if 037777777777L != -1: raise TestFailed, 'oct -1'
|
||||||
if 0xffffffff != -1: raise TestFailed, 'hex -1'
|
if 0xffffffffL != -1: raise TestFailed, 'hex -1'
|
||||||
for s in '2147483648', '040000000000', '0x100000000':
|
for s in '2147483648', '040000000000', '0x100000000':
|
||||||
try:
|
try:
|
||||||
x = eval(s)
|
x = eval(s)
|
||||||
|
|
|
||||||
|
|
@ -39,9 +39,9 @@ x = 0
|
||||||
0xff <> 255
|
0xff <> 255
|
||||||
0377 <> 255
|
0377 <> 255
|
||||||
2147483647 != 017777777777
|
2147483647 != 017777777777
|
||||||
-2147483647-1 != 020000000000
|
-2147483647-1 != 020000000000L
|
||||||
037777777777 != -1
|
037777777777L != -1
|
||||||
0xffffffff != -1
|
0xffffffffL != -1
|
||||||
|
|
||||||
# Long integers
|
# Long integers
|
||||||
x = 0L
|
x = 0L
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue