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

index 903cc56c186f566b76df1bf4340210d10785375f..27d40daa8d45c7f4afea503f229a7ff7da6f72a4 100644 (file)
@@ -181,7 +181,7 @@ def f(): pass
 print 'hex'
 if hex(16) != '0x10': raise TestFailed, 'hex(16)'
 if hex(16L) != '0x10L': raise TestFailed, 'hex(16L)'
-if hex(-16) != '-0x10': raise TestFailed, 'hex(-16)'
+if hex(-16) != '0xfffffff0': raise TestFailed, 'hex(-16)'
 if hex(-16L) != '-0x10L': raise TestFailed, 'hex(-16L)'
 
 print 'id'