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

birkenfeld@users.sourceforge.net birkenfeld at users.sourceforge.net
Sat Sep 17 09:51:12 CEST 2005


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

Modified Files:
      Tag: release24-maint
	test_complex.py 
Log Message:
Test case for latest complexobject fix.



Index: test_complex.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_complex.py,v
retrieving revision 1.15
retrieving revision 1.15.2.1
diff -u -d -r1.15 -r1.15.2.1
--- test_complex.py	22 Aug 2004 21:09:14 -0000	1.15
+++ test_complex.py	17 Sep 2005 07:51:08 -0000	1.15.2.1
@@ -288,6 +288,8 @@
         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)
 



More information about the Python-checkins mailing list