Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ed5d95b

Browse files
committed
#20030: doc that TestLoader.discover returns a TestSuite.
Patch by Lita Cho.
1 parent 8e4b3c7 commit ed5d95b

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Doc/library/unittest.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1489,11 +1489,11 @@ Loading and running tests
14891489

14901490
.. method:: discover(start_dir, pattern='test*.py', top_level_dir=None)
14911491

1492-
Find and return all test modules from the specified start directory,
1493-
recursing into subdirectories to find them. Only test files that match
1494-
*pattern* will be loaded. (Using shell style pattern matching.) Only
1495-
module names that are importable (i.e. are valid Python identifiers) will
1496-
be loaded.
1492+
Find all the test modules by recursing into subdirectories from the
1493+
specified start directory, and return a TestSuite object containing them.
1494+
Only test files that match *pattern* will be loaded. (Using shell style
1495+
pattern matching.) Only module names that are importable (i.e. are valid
1496+
Python identifiers) will be loaded.
14971497

14981498
All test modules must be importable from the top level of the project. If
14991499
the start directory is not the top level directory then the top level

0 commit comments

Comments
 (0)