]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-100824: Fix typo in the documentation of unittest.TestLoader.testNamePatterns...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 8 Jan 2023 08:16:59 +0000 (00:16 -0800)
committerGitHub <noreply@github.com>
Sun, 8 Jan 2023 08:16:59 +0000 (00:16 -0800)
(cherry picked from commit 6d3bc4a795e7a60f665e41b2d4b6803f3844fc48)

Co-authored-by: busywhitespace <busywhitespace@tuta.io>
Doc/library/unittest.rst

index fa4383b2d9928434407d0ffb7e45b6e779d8b5f0..7dc70a8e17c434197200186b467887d8ea4c653e 100644 (file)
@@ -1920,12 +1920,12 @@ Loading and running tests
    .. attribute:: testNamePatterns
 
       List of Unix shell-style wildcard test name patterns that test methods
-      have to match to be included in test suites (see ``-v`` option).
+      have to match to be included in test suites (see ``-k`` option).
 
       If this attribute is not ``None`` (the default), all test methods to be
       included in test suites must match one of the patterns in this list.
       Note that matches are always performed using :meth:`fnmatch.fnmatchcase`,
-      so unlike patterns passed to the ``-v`` option, simple substring patterns
+      so unlike patterns passed to the ``-k`` option, simple substring patterns
       will have to be converted using ``*`` wildcards.
 
       This affects all the :meth:`loadTestsFrom\*` methods.