R. David Murray <rdmur...@bitdance.com> added the comment: What I had in mind for the second test was something that did this (which I think is legal from reading the docs):
parser.add_argument('foo') parser.add_argument('bar', nargs='?', default='eggs') with assertRaisesRegex(ArgumentParseError) as cm: parser.parse_args([]) self.assertNotIn('bar', str(cm.exception)) ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue10424> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com