Message224020
This patch adds a
class TestMutuallyExclusiveGroupErrors
test_invalid_add_group() test,
closely modeled on
test_invalid_add_argument()
I'm using ValueError in group add methods (maintaining the similarity with add_argument errors).
I haven't changed the documentation. add_argument_group and add_mutually_exclusive_group methods are described as belonging to an ArgumentParser, and the examples are consistent with that. An admonition against nesting groups would not fit with the current flow.
However to be accurate, these methods belong to _ActionsContainer, the parent class for both the parser and groups. The documentation glosses over this detail. So an alternative way of addressing this issue is to move these 2 methods to the ArgumentParser class. |
|
Date |
User |
Action |
Args |
2014-07-26 06:05:38 | paul.j3 | set | recipients:
+ paul.j3, Sam.Kerr |
2014-07-26 06:05:38 | paul.j3 | set | messageid: <1406354738.07.0.0570950697848.issue22047@psf.upfronthosting.co.za> |
2014-07-26 06:05:38 | paul.j3 | link | issue22047 messages |
2014-07-26 06:05:37 | paul.j3 | create | |
|