mirror of https://github.com/python/cpython
Documentation improvement for load_tests protocol in unittest. Issue 6515.
This commit is contained in:
parent
d6aabcfe2f
commit
17565e5b7b
|
@ -1281,6 +1281,7 @@ Loading and running tests
|
|||
``load_tests`` does not need to pass this argument in to
|
||||
``loader.discover()``.
|
||||
|
||||
.. versionadded:: 2.7
|
||||
|
||||
The following attributes of a :class:`TestLoader` can be configured either by
|
||||
subclassing or assignment on an instance:
|
||||
|
@ -1545,6 +1546,10 @@ Loading and running tests
|
|||
load_tests Protocol
|
||||
###################
|
||||
|
||||
|
||||
.. versionadded:: 2.7
|
||||
|
||||
|
||||
Modules or packages can customize how tests are loaded from them during normal
|
||||
test runs or test discovery by implementing a function called ``load_tests``.
|
||||
|
||||
|
|
Loading…
Reference in New Issue