summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2005-09-17 07:51:15 (GMT)
committerGeorg Brandl <georg@python.org>2005-09-17 07:51:15 (GMT)
commit9e28107ce8022a7c661b9219fb6e21a9de591b3f (patch)
tree61a01209e47e495ddde97e972ac716af08aa4a64 /Lib
parent116f16e4ab9a7cc319ca42ae24221d203d0d8f26 (diff)
downloadcpython-9e28107ce8022a7c661b9219fb6e21a9de591b3f.zip
cpython-9e28107ce8022a7c661b9219fb6e21a9de591b3f.tar.gz
cpython-9e28107ce8022a7c661b9219fb6e21a9de591b3f.tar.bz2
Test case for latest complexobject fix.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_complex.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_complex.py b/Lib/test/test_complex.py
index 70e91c1..0d42bd2b 100644
--- a/Lib/test/test_complex.py
+++ b/Lib/test/test_complex.py
@@ -310,6 +310,8 @@ class ComplexTest(unittest.TestCase):
self.assertEqual(repr(1+6j), '(1+6j)')
self.assertEqual(repr(1-6j), '(1-6j)')
+ self.assertNotEqual(repr(-(1+0j)), '(-1+-0j)')
+
def test_neg(self):
self.assertEqual(-(1+6j), -1-6j)