summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-06-06 21:14:14 (GMT)
committerGuido van Rossum <guido@python.org>1997-06-06 21:14:14 (GMT)
commitd9c6f4fd7d9c503d36fa74eb1fd4ea0321967da3 (patch)
tree197ed3a51609d06145e000965bd7d126ec02e579
parent914c938cc553fe668ea2987d7d429b2c246906a8 (diff)
downloadcpython-d9c6f4fd7d9c503d36fa74eb1fd4ea0321967da3.zip
cpython-d9c6f4fd7d9c503d36fa74eb1fd4ea0321967da3.tar.gz
cpython-d9c6f4fd7d9c503d36fa74eb1fd4ea0321967da3.tar.bz2
Allow oct() result for 64-bit machines.
-rw-r--r--Lib/test/test_b2.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_b2.py b/Lib/test/test_b2.py
index c46c06c..1c1ea0c 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'