New submission from Zacrath: Executing the attached script causes an AssertionError.
Traceback (most recent call last): File "bug.py", line 18, in <module> parser.format_usage() File "/usr/lib/python3.4/argparse.py", line 2318, in format_usage return formatter.format_help() File "/usr/lib/python3.4/argparse.py", line 287, in format_help help = self._root_section.format_help() File "/usr/lib/python3.4/argparse.py", line 217, in format_help func(*args) File "/usr/lib/python3.4/argparse.py", line 338, in _format_usage assert ' '.join(opt_parts) == opt_usage AssertionError The script was tested in a clean Python installation. If any of the arguments are removed, there is no AssertionError exception. If "help=SUPPRESS" is removed, there is no AssertionError exception. This bug appears to have existed since Python 3.2, the first version that included argparse. ---------- files: bug.py messages: 226572 nosy: Zacrath, bethard priority: normal severity: normal status: open title: argparse AssertionError with add_mutually_exclusive_group and help=SUPPRESS type: behavior versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4, Python 3.5 Added file: http://bugs.python.org/file36572/bug.py _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22363> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com