Skip to content

Commit 6d3bc4a

Browse files
gh-100824: Fix typo in the documentation of unittest.TestLoader.testNamePatterns (#100825)
1 parent a214188 commit 6d3bc4a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/unittest.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1947,12 +1947,12 @@ Loading and running tests
19471947
.. attribute:: testNamePatterns
19481948

19491949
List of Unix shell-style wildcard test name patterns that test methods
1950-
have to match to be included in test suites (see ``-v`` option).
1950+
have to match to be included in test suites (see ``-k`` option).
19511951

19521952
If this attribute is not ``None`` (the default), all test methods to be
19531953
included in test suites must match one of the patterns in this list.
19541954
Note that matches are always performed using :meth:`fnmatch.fnmatchcase`,
1955-
so unlike patterns passed to the ``-v`` option, simple substring patterns
1955+
so unlike patterns passed to the ``-k`` option, simple substring patterns
19561956
will have to be converted using ``*`` wildcards.
19571957

19581958
This affects all the :meth:`loadTestsFrom\*` methods.

0 commit comments

Comments
 (0)