[issue11218] pattern=None when following documentation for load_tests and unittest.main()
report at bugs.python.org
Mon Apr 9 22:17:05 CEST 2012
Rik Poggi <poggi.ricky at gmail.com> added the comment:
I think the doc should be improved (http://docs.python.org/library/unittest.html#load-tests-protocol), it's not clear how pattern in the example (last one) could not be None.
Changing the discover signature doesn't seem to be an option since the TestLoader.discover doc http://docs.python.org/library/unittest.html#unittest.TestLoader.discover says:
The pattern is deliberately not stored as a loader attribute so that
packages can continue discovery themselves.
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list