summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Foord <fuzzyman@voidspace.org.uk>2009-09-27 20:08:23 +0000
committerMichael Foord <fuzzyman@voidspace.org.uk>2009-09-27 20:08:23 +0000
commit17565e5b7be31a85165e4fa8b2324e27831fd742 (patch)
tree7db5088459d530a2277deaf9aa4ed1d5b060e6b4
parentd6aabcfe2f8eed7ad5bd440c95039ace610752a4 (diff)
downloadcpython-git-17565e5b7be31a85165e4fa8b2324e27831fd742.tar.gz
Documentation improvement for load_tests protocol in unittest. Issue 6515.
-rw-r--r--Doc/library/unittest.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst
index 801785da4c..078c339b33 100644
--- a/Doc/library/unittest.rst
+++ b/Doc/library/unittest.rst
@@ -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``.