diff options
-rw-r--r-- | Lib/test/test_b2.py | 3 |
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' |