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

Skip to content

Commit 6bcfade

Browse files
author
Michael Foord
committed
Improve unittest.TestLoader.discover docstring
1 parent 5c41787 commit 6bcfade

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Lib/unittest/loader.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,9 @@ def isTestMethod(attrname, testCaseClass=testCaseClass,
147147

148148
def discover(self, start_dir, pattern='test*.py', top_level_dir=None):
149149
"""Find and return all test modules from the specified start
150-
directory, recursing into subdirectories to find them. Only test files
151-
that match the pattern will be loaded. (Using shell style pattern
152-
matching.)
150+
directory, recursing into subdirectories to find them and return all
151+
tests found within them. Only test files that match the pattern will
152+
be loaded. (Using shell style pattern matching.)
153153
154154
All test modules must be importable from the top level of the project.
155155
If the start directory is not the top level directory then the top

0 commit comments

Comments
 (0)