Serhiy Storchaka added the comment: Here is other variant of patch, even less horrible. However it introduces some incompatibility:
1. Discovery mode now works only when module==None (i.e. from "-m unittest"). It is only case for which it was documented. 2. Previously unittest.main(failfast=False, argv=['prog', '-f']) caused an error, while unittest.main(failfast=True, argv=['prog', '-f']) and unittest.main(failfast=[], argv=['prog', '-f']) just had no any effect. Now all non-None casse cause an error. The same for catchbreak and buffer. ---------- Added file: http://bugs.python.org/file30268/unittest_argparse_less_horrible_3.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue17974> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com