[New-bugs-announce] [issue23062] test_argparse --version test cases

Martin Panter report at bugs.python.org
Tue Dec 16 06:12:16 CET 2014


New submission from Martin Panter:

In Lib/test/test_argparse.py:

class TestHelpVersionOptional(HelpTestCase):
    """Test that the --version argument can be suppressed help messages"""

Assuming that the docstring means something like “. . . can be suppressed _in_ help messages”, the test is wrong, because the --version option is present in the expected output. Maybe it is missing a help=SUPPRESS option? Otherwise it seems this test class would be largely redundant with TestHelpVersionAction.

It also looks like the “version” attribute of the test classes is not used.

----------
components: Tests
messages: 232712
nosy: vadmium
priority: normal
severity: normal
status: open
title: test_argparse --version test cases
versions: Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23062>
_______________________________________


More information about the New-bugs-announce mailing list