Skip to content

Commit caed845

Browse files
gh-100824: Fix typo in the documentation of unittest.TestLoader.testNamePatterns (GH-100825)
(cherry picked from commit 6d3bc4a) Co-authored-by: busywhitespace <[email protected]>
1 parent 4b4e6da commit caed845

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/unittest.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -1983,12 +1983,12 @@ Loading and running tests
19831983
.. attribute:: testNamePatterns
19841984

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

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

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

0 commit comments

Comments
 (0)