]> granicus.if.org Git - python/commitdiff
updated the oct(-100) test since oct() of a signed literal has changed.
authorBarry Warsaw <barry@python.org>
Mon, 13 Jan 1997 22:36:03 +0000 (22:36 +0000)
committerBarry Warsaw <barry@python.org>
Mon, 13 Jan 1997 22:36:03 +0000 (22:36 +0000)
Lib/test/test_b2.py

index 62d17b9ba5dcab5689b2cc26f3ca4843a5739511..c46c06cc7089843f13a91587715a50e94be679b3 100644 (file)
@@ -5,7 +5,7 @@ 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) != '-0144': raise TestFailed, 'oct(-100)'
+if oct(-100) != '037777777634': raise TestFailed, 'oct(-100)'
 if oct(-100L) != '-0144L': raise TestFailed, 'oct(-100L)'
 
 print 'open'