]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-100824: Fix typo in the documentation of unittest.TestLoader.testNamePatterns...
authorbusywhitespace <busywhitespace@tuta.io>
Sun, 8 Jan 2023 08:07:16 +0000 (09:07 +0100)
committerGitHub <noreply@github.com>
Sun, 8 Jan 2023 08:07:16 +0000 (13:37 +0530)
Doc/library/unittest.rst

index 7f48146ca830f4eeb5051b8b1e92ca45c6eb2fa9..1577149e976474d5f7457986acce440c00ec3d70 100644 (file)
@@ -1947,12 +1947,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.