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 r.david.murray
Recipients bethard, eric.araujo, ezio.melotti, maker, r.david.murray
Date 2011-05-27.17:02:27
SpamBayes Score 0.026266547
Marked as misclassified No
Message-id <1306515748.33.0.714178169445.issue10424@psf.upfronthosting.co.za>
In-reply-to
Content
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))
History
Date User Action Args
2011-05-27 17:02:28r.david.murraysetrecipients: + r.david.murray, bethard, ezio.melotti, eric.araujo, maker
2011-05-27 17:02:28r.david.murraysetmessageid: <1306515748.33.0.714178169445.issue10424@psf.upfronthosting.co.za>
2011-05-27 17:02:27r.david.murraylinkissue10424 messages
2011-05-27 17:02:27r.david.murraycreate