Message137086
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)) |
|
Date |
User |
Action |
Args |
2011-05-27 17:02:28 | r.david.murray | set | recipients:
+ r.david.murray, bethard, ezio.melotti, eric.araujo, maker |
2011-05-27 17:02:28 | r.david.murray | set | messageid: <1306515748.33.0.714178169445.issue10424@psf.upfronthosting.co.za> |
2011-05-27 17:02:27 | r.david.murray | link | issue10424 messages |
2011-05-27 17:02:27 | r.david.murray | create | |
|