Martin von Gagern <martin.vgag...@gmx.net> added the comment:

Rik, I don't follow your argument on not changing discover. Currently, if code 
calls discover with pattern=None, there will be an exception. So there cannot 
be any working code out there which passes pattern=None. Therefore, it should 
be all right for the implementation to detect the None and replace it by a 
default. No currently working code should be affected, and new code could be 
shorter that way. The pattern still wouldn't be stored inside the loader, so 
the doc there still holds. Only the fallback for None would be stored.

By the way, what's the rationale behind passing the pattern to the load_tests 
function? Shouldn't each package decide which of its files constitute the test 
suite, independent of what the parent module used as a filter?

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue11218>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to