Steven Bethard <steven.beth...@gmail.com> added the comment: The tests look like they're testing the right things, but the tests should instead be written like the rest of the argparse tests. For example, look at TestOptionalsNargs3 and TestPositionalsNargs2. You could write your tests to look something like those, e.g.
class TestOptionalsNargs1_3(ParserTestCase): argument_signatures = [Sig('-x', nargs=(1, 3))] failures = ['a', '-x', '-x a b c d'] successes = [ ('', NS(x=None)), ('-x a', NS(x=['a'])), ('-x a b', NS(x=['a', 'b'])), ('-x a b c', NS(x=['a', 'b', 'c'])), ] Also, a complete patch will need to document the new feature in the Python documentation, among other things. See the details described here: http://docs.python.org/devguide/patch.html#preparation ---------- versions: +Python 3.4 -Python 3.3 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue11354> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com