]> granicus.if.org Git - python/commitdiff
Allow oct() result for 64-bit machines.
authorGuido van Rossum <guido@python.org>
Fri, 6 Jun 1997 21:14:14 +0000 (21:14 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 6 Jun 1997 21:14:14 +0000 (21:14 +0000)
Lib/test/test_b2.py

index c46c06cc7089843f13a91587715a50e94be679b3..1c1ea0c2c67bb467601b1796bedc3fc633fd09a1 100644 (file)
@@ -5,7 +5,8 @@ from test_support import *
 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'