summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/unittest.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/unittest.py b/Lib/unittest.py
index f7d979e..72414fa 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()