mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
updated the hex(-16) test since hex() of a signed literal has changed.
This commit is contained in:
parent
906a5e9c68
commit
6f332d8f35
1 changed files with 1 additions and 1 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue