Skip to content

Commit 89ea4f9

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 67e52e5 commit 89ea4f9

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
@@ -1920,12 +1920,12 @@ Loading and running tests
19201920
.. attribute:: testNamePatterns
19211921

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

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

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

0 commit comments

Comments
 (0)