]> granicus.if.org Git - python/commitdiff
#20030: doc that TestLoader.discover returns a TestSuite.
authorR David Murray <rdmurray@bitdance.com>
Tue, 11 Mar 2014 22:12:25 +0000 (18:12 -0400)
committerR David Murray <rdmurray@bitdance.com>
Tue, 11 Mar 2014 22:12:25 +0000 (18:12 -0400)
Patch by Lita Cho.

Doc/library/unittest.rst

index 9d0bbe688ce5547602bd502c72b8950df08195e7..52c68faa93d6576b3fb2971675880553d5ea886f 100644 (file)
@@ -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