[Python-checkins] python/dist/src/Lib unittest.py,1.22,1.23

rhettinger@users.sourceforge.net rhettinger@users.sourceforge.net
Fri, 04 Apr 2003 14:56:44 -0800


Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1:/tmp/cvs-serv18890/Lib

Modified Files:
	unittest.py 
Log Message:
SF bug #715145: unittest.py still uses != in failUnlessEqual

Index: unittest.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/unittest.py,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -d -r1.22 -r1.23
*** unittest.py	27 Feb 2003 20:14:43 -0000	1.22
--- unittest.py	4 Apr 2003 22:56:41 -0000	1.23
***************
*** 286,293 ****
  
      def failUnlessEqual(self, first, second, msg=None):
!         """Fail if the two objects are unequal as determined by the '!='
             operator.
          """
!         if first != second:
              raise self.failureException, \
                    (msg or '%s != %s' % (`first`, `second`))
--- 286,293 ----
  
      def failUnlessEqual(self, first, second, msg=None):
!         """Fail if the two objects are unequal as determined by the '=='
             operator.
          """
!         if not first == second:
              raise self.failureException, \
                    (msg or '%s != %s' % (`first`, `second`))