From: Georg Brandl Date: Sat, 17 Sep 2005 07:51:08 +0000 (+0000) Subject: Test case for latest complexobject fix. X-Git-Tag: v2.4.2c1~15 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fc7cb40d00f38144917359c00d308686bc3f3eba;p=thirdparty%2FPython%2Fcpython.git Test case for latest complexobject fix. --- diff --git a/Lib/test/test_complex.py b/Lib/test/test_complex.py index 15f4b654794e..57c8720671d9 100644 --- a/Lib/test/test_complex.py +++ b/Lib/test/test_complex.py @@ -288,6 +288,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)