mirror of
https://github.com/python/cpython.git
synced 2025-08-28 12:45:07 +00:00
SF bug #715145: unittest.py still uses != in failUnlessEqual
This commit is contained in:
parent
dee38ac7dd
commit
c377cbfdaf
2 changed files with 6 additions and 2 deletions
|
@ -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`))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue