From: Barry Warsaw Date: Mon, 13 Jan 1997 22:36:03 +0000 (+0000) Subject: updated the oct(-100) test since oct() of a signed literal has changed. X-Git-Tag: v1.5a1~531 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=906a5e9c685ac4125b44d25dfa85757c13246b01;p=python updated the oct(-100) test since oct() of a signed literal has changed. --- diff --git a/Lib/test/test_b2.py b/Lib/test/test_b2.py index 62d17b9ba5..c46c06cc70 100644 --- a/Lib/test/test_b2.py +++ b/Lib/test/test_b2.py @@ -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'