summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)