Commit ab0648ff authored by Steve Purcell's avatar Steve Purcell

- Typo in message for TestCase.failIfEqual()

- Removed unused variable 'opts' in TestProgram.__init__ (thanks to PyChecker)
parent f3ee46b8
......@@ -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()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment