Kaydet (Commit) 6f332d8f authored tarafından Barry Warsaw's avatar Barry Warsaw

updated the hex(-16) test since hex() of a signed literal has changed.

üst 906a5e9c
...@@ -181,7 +181,7 @@ def f(): pass ...@@ -181,7 +181,7 @@ def f(): pass
print 'hex' print 'hex'
if hex(16) != '0x10': raise TestFailed, 'hex(16)' if hex(16) != '0x10': raise TestFailed, 'hex(16)'
if hex(16L) != '0x10L': raise TestFailed, 'hex(16L)' 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)' if hex(-16L) != '-0x10L': raise TestFailed, 'hex(-16L)'
print 'id' print 'id'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment