]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
- Typo in message for TestCase.failIfEqual()
authorSteve Purcell <steve@pythonconsulting.com>
Sun, 15 Apr 2001 09:18:32 +0000 (09:18 +0000)
committerSteve Purcell <steve@pythonconsulting.com>
Sun, 15 Apr 2001 09:18:32 +0000 (09:18 +0000)
- Removed unused variable 'opts' in TestProgram.__init__ (thanks to PyChecker)

Lib/unittest.py

index f7d979edacea17b83942e1b4e960475aa4720605..72414fa3887cd7d0e28bc2e89a7ae7e91c21c689 100644 (file)
@@ -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()