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 jcollado
Recipients bethard, eric.araujo, jcollado, r.david.murray
Date 2010-06-21.15:27:58
SpamBayes Score 0.089160435
Marked as misclassified No
Message-id <1277134082.88.0.838666539233.issue9026@psf.upfronthosting.co.za>
In-reply-to
Content
Finally I had to use an OrderedDict as suggested by R. David Murray because it wasn't safe to rely on _choices_actions in HelpFormatter class (i.e. previous patch wasn't valid):
- _choices_actions attribute is only present in _SubParsersAction class
- Even if action object is an instance of _SubParsersAction, _choices_actions only contains data for for subparsers that contain a help description.

Regarding the test cases:
- TestHelpSubparsersOrdering and TestHelpSubparsersWithHelpOrdering have been added
- TestHelpFormattingMetaClass has been modified:
  - New subparsers_signatures tester attribute added to test subparsers help.
  - If a 'signatures attribute' isn't present in tester object, then isn't consumed
  - assertMultilineEqual used instead of assertEqual to make it easier to debug test case failures.
History
Date User Action Args
2010-06-21 15:28:03jcolladosetrecipients: + jcollado, bethard, eric.araujo, r.david.murray
2010-06-21 15:28:02jcolladosetmessageid: <1277134082.88.0.838666539233.issue9026@psf.upfronthosting.co.za>
2010-06-21 15:28:00jcolladolinkissue9026 messages
2010-06-21 15:28:00jcolladocreate