From: Steve Purcell Date: Sun, 15 Apr 2001 09:18:32 +0000 (+0000) Subject: - Typo in message for TestCase.failIfEqual() X-Git-Tag: v2.1c2~20 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ab0648ffc0657aa11e5a83d76cd5e538f34e0318;p=thirdparty%2FPython%2Fcpython.git - Typo in message for TestCase.failIfEqual() - Removed unused variable 'opts' in TestProgram.__init__ (thanks to PyChecker) --- diff --git a/Lib/unittest.py b/Lib/unittest.py index f7d979edacea..72414fa3887c 100644 --- a/Lib/unittest.py +++ b/Lib/unittest.py @@ -277,7 +277,7 @@ class TestCase: operator. """ if first == second: - raise self.failureException, (msg or '%s != %s' % (first, second)) + raise self.failureException, (msg or '%s == %s' % (first, second)) assertEqual = assertEquals = failUnlessEqual @@ -672,7 +672,6 @@ Examples: try: options, args = getopt.getopt(argv[1:], 'hHvq', ['help','verbose','quiet']) - opts = {} for opt, value in options: if opt in ('-h','-H','--help'): self.usageExit()