mirror of https://github.com/python/cpython.git
Allow oct() result for 64-bit machines.
This commit is contained in:
parent
914c938cc5
commit
d9c6f4fd7d
|
@ -5,7 +5,8 @@
|
|||
print 'oct'
|
||||
if oct(100) != '0144': raise TestFailed, 'oct(100)'
|
||||
if oct(100L) != '0144L': raise TestFailed, 'oct(100L)'
|
||||
if oct(-100) != '037777777634': raise TestFailed, 'oct(-100)'
|
||||
if oct(-100) not in ('037777777634', '01777777777777777777634'):
|
||||
raise TestFailed, 'oct(-100)'
|
||||
if oct(-100L) != '-0144L': raise TestFailed, 'oct(-100L)'
|
||||
|
||||
print 'open'
|
||||
|
|
Loading…
Reference in New Issue