[issue17974] Migrate unittest to argparse

Serhiy Storchaka report at bugs.python.org
Wed May 15 01:04:24 CEST 2013


Serhiy Storchaka added the comment:

Here is a patch which reimplement discovery command line handling in a i-hope-in-compatible-but-less-horrible way (and fixes some bugs). It is horrible still, but I doubt how many changes can I do without breaking compatibility. If _do_discovery() used only in tests, I can clean the code more.

I suppose discovery mode doesn't make sense when unittest.main() is called from a test module (i.e. "./python Lib/test/test_bisect.py discover"). At least USAGE_FROM_MODULE did not mention this mode.

----------
Added file: http://bugs.python.org/file30263/unittest_argparse_less_horrible.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17974>
_______________________________________


More information about the Python-bugs-list mailing list