summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_complex.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2004-08-22 21:09:15 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2004-08-22 21:09:15 (GMT)
commit70aa1f20951a443dcd6387a23a8835bde596055f (patch)
tree0d50e1264bdb36d56372c068571fef06109b5b0c /Lib/test/test_complex.py
parentf82a9ded393c98205ca263ff397bf84f0eedfef3 (diff)
downloadcpython-70aa1f20951a443dcd6387a23a8835bde596055f.zip
cpython-70aa1f20951a443dcd6387a23a8835bde596055f.tar.gz
cpython-70aa1f20951a443dcd6387a23a8835bde596055f.tar.bz2
Fix repr for negative imaginary part. Fixes #1013908.
Diffstat (limited to 'Lib/test/test_complex.py')
-rw-r--r--Lib/test/test_complex.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_complex.py b/Lib/test/test_complex.py
index 20ae1de..15f4b65 100644
--- a/Lib/test/test_complex.py
+++ b/Lib/test/test_complex.py
@@ -286,6 +286,7 @@ class ComplexTest(unittest.TestCase):
def test_repr(self):
self.assertEqual(repr(1+6j), '(1+6j)')
+ self.assertEqual(repr(1-6j), '(1-6j)')
def test_neg(self):
self.assertEqual(-(1+6j), -1-6j)