From c377cbfdaf9feb02bc5bea347cbe4c587ef33a10 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Fri, 4 Apr 2003 22:56:42 +0000 Subject: SF bug #715145: unittest.py still uses != in failUnlessEqual --- Lib/unittest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Lib/unittest.py') diff --git a/Lib/unittest.py b/Lib/unittest.py index e85dcd1c73..d31e251d4b 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`)) -- cgit v1.2.1