summaryrefslogtreecommitdiffstats
path: root/Lib/unittest.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2003-04-04 22:56:42 (GMT)
committerRaymond Hettinger <python@rcn.com>2003-04-04 22:56:42 (GMT)
commitc377cbfdaf9feb02bc5bea347cbe4c587ef33a10 (patch)
tree24de7261be461dd042da572cb5403e9b3d249a64 /Lib/unittest.py
parentdee38ac7ddea4268156948062aaa2e1cabc7e5aa (diff)
downloadcpython-c377cbfdaf9feb02bc5bea347cbe4c587ef33a10.zip
cpython-c377cbfdaf9feb02bc5bea347cbe4c587ef33a10.tar.gz
cpython-c377cbfdaf9feb02bc5bea347cbe4c587ef33a10.tar.bz2
SF bug #715145: unittest.py still uses != in failUnlessEqual
Diffstat (limited to 'Lib/unittest.py')
-rw-r--r--Lib/unittest.py4
1 files changed, 2 insertions, 2 deletions
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 @@ class TestCase:
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`))