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

Skip to content

Commit 600e08d

Browse files
committed
Merge #20030: doc that TestLoader.discover returns a TestSuite.
2 parents 86deec1 + ed5d95b commit 600e08d

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
@@ -1624,11 +1624,11 @@ Loading and running tests
16241624

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

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

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

0 commit comments

Comments
 (0)