projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7871154
)
Verify treatment of unary minus on negative numbers SF bug #660455.
author
Guido van Rossum
<guido@python.org>
Tue, 28 Jan 2003 17:48:21 +0000
(17:48 +0000)
committer
Guido van Rossum
<guido@python.org>
Tue, 28 Jan 2003 17:48:21 +0000
(17:48 +0000)
Lib/test/test_compile.py
patch
|
blob
|
history
diff --git
a/Lib/test/test_compile.py
b/Lib/test/test_compile.py
index c9a139b5f5e05f5dc64a2f6d2eb179f4e6118577..3530457962aeee0cd665905e62fdde428cc59117 100644
(file)
--- a/
Lib/test/test_compile.py
+++ b/
Lib/test/test_compile.py
@@
-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)