diff options
| author | Guido van Rossum <guido@python.org> | 2003-02-12 19:09:45 +0000 |
|---|---|---|
| committer | Guido van Rossum <guido@python.org> | 2003-02-12 19:09:45 +0000 |
| commit | 32810627a27fd8e6591b09bab045564030f10099 (patch) | |
| tree | d2a08ff6ce781b19e1079a6a2648f1e0a91c6503 /Lib | |
| parent | 9aa50276997a18d3e7a815ba155730bf8c2b668f (diff) | |
| download | cpython-git-32810627a27fd8e6591b09bab045564030f10099.tar.gz | |
Backport SF #660455 fix.
Diffstat (limited to 'Lib')
| -rw-r--r-- | Lib/test/test_compile.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_compile.py b/Lib/test/test_compile.py index 3801cacd87..378fae3845 100644 --- a/Lib/test/test_compile.py +++ b/Lib/test/test_compile.py @@ -123,3 +123,7 @@ 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 +expect_same("0xffffffff", -1) +expect_same("-0xffffffff", 1) |
