Verify treatment of unary minus on negative numbers SF bug #660455.

This commit is contained in:
Guido van Rossum 2003-01-28 17:48:21 +00:00
parent 7871154c2e
commit 53b39d2e70
1 changed files with 7 additions and 0 deletions

View File

@ -132,3 +132,10 @@ expect_error("000000000000008") # plain octal literal w/ decimal digit
expect_same("000000000000007", 7)
expect_same("000000000000008.", 8.)
expect_same("000000000000009.", 9.)
# Verify treatment of unary minus on negative numbers SF bug #660455
import warnings
warnings.filterwarnings("ignore", "hex/oct constants", FutureWarning)
# XXX Of course the following test will have to be changed in Python 2.4
expect_same("0xffffffff", -1)
expect_same("-0xffffffff", 1)