Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8cd70c3 commit c1c96d1Copy full SHA for c1c96d1
1 file changed
Lib/test/test_b1.py
@@ -208,7 +208,9 @@ def f(): pass
208
print 'hex'
209
if hex(16) != '0x10': raise TestFailed, 'hex(16)'
210
if hex(16L) != '0x10L': raise TestFailed, 'hex(16L)'
211
-if hex(-16) != '0xfffffff0': raise TestFailed, 'hex(-16)'
+if len(hex(-1)) != len(hex(sys.maxint)): raise TestFailed, 'len(hex(-1))'
212
+if hex(-16) not in ('0xfffffff0', '0xfffffffffffffff0'):
213
+ raise TestFailed, 'hex(-16)'
214
if hex(-16L) != '-0x10L': raise TestFailed, 'hex(-16L)'
215
216
print 'id'
0 commit comments