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

I'm attaching a patch to better explain what I'm suggesting. As you can see, 
this patch doesn't change the signature of discover, nor does it change the 
semantics for any code that doesn't pass pattern, or that passes some pattern 
other than None.

The only change is that now, passing pattern=None is the same as not passing 
pattern at all. As a result, load_tests might now pass pattern=pattern as the 
documentation suggests, and still be called with pattern=None without raising 
an exception.

----------
keywords: +patch
Added file: http://bugs.python.org/file25208/issue11218_patternNone.patch

_______________________________________
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