[Python-checkins] python/dist/src/Lib/test test_complex.py, 1.14, 1.15

loewis at users.sourceforge.net loewis at users.sourceforge.net
Sun Aug 22 23:09:17 CEST 2004


Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv511/Lib/test

Modified Files:
	test_complex.py 
Log Message:
Fix repr for negative imaginary part. Fixes #1013908.


Index: test_complex.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_complex.py,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- test_complex.py	5 Aug 2003 15:55:38 -0000	1.14
+++ test_complex.py	22 Aug 2004 21:09:14 -0000	1.15
@@ -286,6 +286,7 @@
 
     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)



More information about the Python-checkins mailing list