gh-100824: Fix typo in the documentation of unittest.TestLoader.testNamePatterns (GH-100825)

(cherry picked from commit 6d3bc4a795)

Co-authored-by: busywhitespace <busywhitespace@tuta.io>
This commit is contained in:
Miss Islington (bot) 2023-01-08 00:16:49 -08:00 committed by GitHub
parent 4b4e6da7b5
commit caed845fb5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.