summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>1997-01-13 22:36:29 (GMT)
committerBarry Warsaw <barry@python.org>1997-01-13 22:36:29 (GMT)
commit6f332d8f35c039c728cc3f58df0e332aefbf5c45 (patch)
tree7f53b8b14c042df12059e03d05754dd6f6520df3
parent906a5e9c685ac4125b44d25dfa85757c13246b01 (diff)
downloadcpython-6f332d8f35c039c728cc3f58df0e332aefbf5c45.zip
cpython-6f332d8f35c039c728cc3f58df0e332aefbf5c45.tar.gz
cpython-6f332d8f35c039c728cc3f58df0e332aefbf5c45.tar.bz2
updated the hex(-16) test since hex() of a signed literal has changed.
-rw-r--r--Lib/test/test_b1.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_b1.py b/Lib/test/test_b1.py
index 903cc56..27d40da 100644
--- a/Lib/test/test_b1.py
+++ b/Lib/test/test_b1.py
@@ -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'