- Typo in message for TestCase.failIfEqual()

- Removed unused variable 'opts' in TestProgram.__init__ (thanks to PyChecker)
This commit is contained in:
Steve Purcell 2001-04-15 09:18:32 +00:00
parent f3ee46b82a
commit ab0648ffc0
1 changed files with 1 additions and 2 deletions

View 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()