Skip to content

Commit ab0648f

Browse files
committed
- Typo in message for TestCase.failIfEqual()
- Removed unused variable 'opts' in TestProgram.__init__ (thanks to PyChecker)
1 parent f3ee46b commit ab0648f

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Lib/unittest.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ def failIfEqual(self, first, second, msg=None):
277277
operator.
278278
"""
279279
if first == second:
280-
raise self.failureException, (msg or '%s != %s' % (first, second))
280+
raise self.failureException, (msg or '%s == %s' % (first, second))
281281

282282
assertEqual = assertEquals = failUnlessEqual
283283

@@ -672,7 +672,6 @@ def parseArgs(self, argv):
672672
try:
673673
options, args = getopt.getopt(argv[1:], 'hHvq',
674674
['help','verbose','quiet'])
675-
opts = {}
676675
for opt, value in options:
677676
if opt in ('-h','-H','--help'):
678677
self.usageExit()

0 commit comments

Comments
 (0)