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 <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

Reply via email to