Message226572
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. |
|
Date |
User |
Action |
Args |
2014-09-08 11:46:27 | mZarjk | set | recipients:
+ mZarjk, bethard |
2014-09-08 11:46:27 | mZarjk | set | messageid: <1410176787.11.0.945188170372.issue22363@psf.upfronthosting.co.za> |
2014-09-08 11:46:27 | mZarjk | link | issue22363 messages |
2014-09-08 11:46:26 | mZarjk | create | |
|