Daniel Haertle <haer...@uni-bonn.de> added the comment: 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". ---------- nosy: +Danh _______________________________________ 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