summaryrefslogtreecommitdiffstats
path: root/Lib/unittest.py
diff options
context:
space:
mode:
authorSteve Purcell <steve@pythonconsulting.com>2001-04-15 09:18:32 (GMT)
committerSteve Purcell <steve@pythonconsulting.com>2001-04-15 09:18:32 (GMT)
commitab0648ffc0657aa11e5a83d76cd5e538f34e0318 (patch)
tree42daafd33f77a6fe157e03cd0fb4157dd2f75192 /Lib/unittest.py
parentf3ee46b82a8dd253b60179f004d9db9b145df2e6 (diff)
downloadcpython-ab0648ffc0657aa11e5a83d76cd5e538f34e0318.zip
cpython-ab0648ffc0657aa11e5a83d76cd5e538f34e0318.tar.gz
cpython-ab0648ffc0657aa11e5a83d76cd5e538f34e0318.tar.bz2
- Typo in message for TestCase.failIfEqual()
- Removed unused variable 'opts' in TestProgram.__init__ (thanks to PyChecker)
Diffstat (limited to 'Lib/unittest.py')
-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()