[Python-bugs-list] [ python-Bugs-715145 ] unittest.py still uses != in failUnlessEqual.

SourceForge.net noreply@sourceforge.net
Fri, 04 Apr 2003 15:11:52 -0800


Bugs item #715145, was opened at 2003-04-04 03:25
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=715145&group_id=5470

Category: None
>Group: Python 2.3
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Jeremy Fincher (jemfinch)
Assigned to: Nobody/Anonymous (nobody)
Summary: unittest.py still uses != in failUnlessEqual.

Initial Comment:
It was submitted a long time ago to the PyUnit SF.net bug 
tracker 
(http://sourceforge.net/tracker/index.php?func=detail&aid=453281&group_id=3912&atid=103912), 
and even got the BDFL approval, but still hasn't been 
changed.  See the linked bug for the actual fix. 
 
(I also agree with rengelink's opinion that if __eq__ is 
defined but not __ne__, != should be equivalent to not ==, 
in which case this wouldn't be a problem.) 

----------------------------------------------------------------------

>Comment By: Raymond Hettinger (rhettinger)
Date: 2003-04-04 18:11

Message:
Logged In: YES 
user_id=80475

Fixed.
See Lib/unittest.py 1.23

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=715145&group_id=5470