SF bug #715145: unittest.py still uses != in failUnlessEqual
diff --git a/Lib/unittest.py b/Lib/unittest.py
index e85dcd1..d31e251 100644
--- a/Lib/unittest.py
+++ b/Lib/unittest.py
@@ -285,10 +285,10 @@
raise self.failureException, excName
def failUnlessEqual(self, first, second, msg=None):
- """Fail if the two objects are unequal as determined by the '!='
+ """Fail if the two objects are unequal as determined by the '=='
operator.
"""
- if first != second:
+ if not first == second:
raise self.failureException, \
(msg or '%s != %s' % (`first`, `second`))