This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mZarjk
Recipients bethard, mZarjk
Date 2014-09-08.11:46:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1410176787.11.0.945188170372.issue22363@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2014-09-08 11:46:27mZarjksetrecipients: + mZarjk, bethard
2014-09-08 11:46:27mZarjksetmessageid: <1410176787.11.0.945188170372.issue22363@psf.upfronthosting.co.za>
2014-09-08 11:46:27mZarjklinkissue22363 messages
2014-09-08 11:46:26mZarjkcreate