summaryrefslogtreecommitdiffstats
path: root/Doc/library/unittest.rst
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2014-03-11 22:12:25 (GMT)
committerR David Murray <rdmurray@bitdance.com>2014-03-11 22:12:25 (GMT)
commit8de21188aea345de2a2677dd952f2f43fd4b91eb (patch)
treea8a48c553123d1c1fd7789758494161d2574ce2a /Doc/library/unittest.rst
parent841da4ed22ccd556282b86de9e1c524cc71e9a7e (diff)
downloadcpython-8de21188aea345de2a2677dd952f2f43fd4b91eb.zip
cpython-8de21188aea345de2a2677dd952f2f43fd4b91eb.tar.gz
cpython-8de21188aea345de2a2677dd952f2f43fd4b91eb.tar.bz2
#20030: doc that TestLoader.discover returns a TestSuite.
Patch by Lita Cho.
Diffstat (limited to 'Doc/library/unittest.rst')
-rw-r--r--Doc/library/unittest.rst10
1 files changed, 5 insertions, 5 deletions
diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst
index 9d0bbe6..52c68fa 100644
--- a/Doc/library/unittest.rst
+++ b/Doc/library/unittest.rst
@@ -1510,11 +1510,11 @@ Loading and running tests
.. method:: discover(start_dir, pattern='test*.py', top_level_dir=None)
- Find and return all test modules from the specified start directory,
- recursing into subdirectories to find them. Only test files that match
- *pattern* will be loaded. (Using shell style pattern matching.) Only
- module names that are importable (i.e. are valid Python identifiers) will
- be loaded.
+ Find all the test modules by recursing into subdirectories from the
+ specified start directory, and return a TestSuite object containing them.
+ Only test files that match *pattern* will be loaded. (Using shell style
+ pattern matching.) Only module names that are importable (i.e. are valid
+ Python identifiers) will be loaded.
All test modules must be importable from the top level of the project. If
the start directory is not the top level directory then the top level