[Python-checkins] gh-100824: Fix typo in the documentation of unittest.TestLoader.testNamePatterns (GH-100825)
miss-islington
webhook-mailer at python.org
Sun Jan 8 03:16:56 EST 2023
https://github.com/python/cpython/commit/caed845fb53d633f4544ac99b043bad66ef5639f
commit: caed845fb53d633f4544ac99b043bad66ef5639f
branch: 3.11
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2023-01-08T00:16:49-08:00
summary:
gh-100824: Fix typo in the documentation of unittest.TestLoader.testNamePatterns (GH-100825)
(cherry picked from commit 6d3bc4a795e7a60f665e41b2d4b6803f3844fc48)
Co-authored-by: busywhitespace <busywhitespace at tuta.io>
files:
M Doc/library/unittest.rst
diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst
index 42d17db3a3a2..82fded4ab002 100644
--- a/Doc/library/unittest.rst
+++ b/Doc/library/unittest.rst
@@ -1983,12 +1983,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.
More information about the Python-checkins
mailing list