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 Danh
Recipients Danh, wm
Date 2011-03-01.12:57:50
SpamBayes Score 0.061776314
Marked as misclassified No
Message-id <1298984271.47.0.141013251152.issue11354@psf.upfronthosting.co.za>
In-reply-to
Content
Hi Wojciech,

in your tests, at

    def test_add_argument10(self):
        "nargs = (0, 1) => optimized to '?'"
        opt = self.add_argument(1, None)
        self.assertEqual(opt.nargs, argparse.ONE_OR_MORE)

you should change "argparse.ONE_OR_MORE" to "argparse.OPTIONAL".
History
Date User Action Args
2011-03-01 12:57:51Danhsetrecipients: + Danh, wm
2011-03-01 12:57:51Danhsetmessageid: <1298984271.47.0.141013251152.issue11354@psf.upfronthosting.co.za>
2011-03-01 12:57:50Danhlinkissue11354 messages
2011-03-01 12:57:50Danhcreate