summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_optparse.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-03-14 10:45:50 (GMT)
committerGeorg Brandl <georg@python.org>2010-03-14 10:45:50 (GMT)
commit1b37e8728c654efe928b9bc028b2f4f5621a35ea (patch)
tree78762df4462cceecbc4c155c362986288fc2dfbb /Lib/test/test_optparse.py
parent7a4f7d92f04e4d8c8d95e9735698cc9273d43a9d (diff)
downloadcpython-1b37e8728c654efe928b9bc028b2f4f5621a35ea.zip
cpython-1b37e8728c654efe928b9bc028b2f4f5621a35ea.tar.gz
cpython-1b37e8728c654efe928b9bc028b2f4f5621a35ea.tar.bz2
Merged revisions 78093 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r78093 | georg.brandl | 2010-02-07 18:03:15 +0100 (So, 07 Feb 2010) | 1 line Remove unused imports in test modules. ........
Diffstat (limited to 'Lib/test/test_optparse.py')
-rw-r--r--Lib/test/test_optparse.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/Lib/test/test_optparse.py b/Lib/test/test_optparse.py
index e9cc2de..8486c79 100644
--- a/Lib/test/test_optparse.py
+++ b/Lib/test/test_optparse.py
@@ -16,9 +16,9 @@ from io import StringIO
from test import support
-from optparse import make_option, Option, IndentedHelpFormatter, \
- TitledHelpFormatter, OptionParser, OptionContainer, OptionGroup, \
- SUPPRESS_HELP, SUPPRESS_USAGE, OptionError, OptionConflictError, \
+from optparse import make_option, Option, \
+ TitledHelpFormatter, OptionParser, OptionGroup, \
+ SUPPRESS_USAGE, OptionError, OptionConflictError, \
BadOptionError, OptionValueError, Values
from optparse import _match_abbrev
from optparse import _parse_num
@@ -1224,7 +1224,6 @@ class TestCallbackVarArgs(BaseTest):
def variable_args(self, option, opt, value, parser):
self.assertTrue(value is None)
- done = 0
value = []
rargs = parser.rargs
while rargs: