From: Guido van Rossum Date: Fri, 6 Jun 1997 21:14:14 +0000 (+0000) Subject: Allow oct() result for 64-bit machines. X-Git-Tag: v1.5a3~349 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d9c6f4fd7d9c503d36fa74eb1fd4ea0321967da3;p=python Allow oct() result for 64-bit machines. --- diff --git a/Lib/test/test_b2.py b/Lib/test/test_b2.py index c46c06cc70..1c1ea0c2c6 100644 --- a/Lib/test/test_b2.py +++ b/Lib/test/test_b2.py @@ -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'