Zacrath added the comment:
I've confirmed that this is a duplicate of issue 17890.
In case anyone needs it, a workaround is to move the mutually exclusive group
to the end of the arguments.
--
___
Python tracker
<http://bugs.python.org/is
Changes by Zacrath :
--
nosy: +Zacrath
___
Python tracker
<http://bugs.python.org/issue11874>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.pyth
Zacrath added the comment:
This assert statement is only reached when the usage line is long enough that
it needs to be wrapped. Which is why the assertion does not happen when an
argument is removed.
opt_usage is being compared to this string:
"[-h] [--arg2 ARG2] [--arg3 ARG3] [--arg4
New submission from Zacrath:
Executing the attached script causes an AssertionError.
Traceback (most recent call last):
File "bug.py", line 18, in
parser.format_usage()
File "/usr/lib/python3.4/argparse.py", line 2318, in format_usage
return formatter.format_hel