From: busywhitespace Date: Sun, 8 Jan 2023 08:07:16 +0000 (+0100) Subject: gh-100824: Fix typo in the documentation of unittest.TestLoader.testNamePatterns... X-Git-Tag: v3.12.0a4~28 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6d3bc4a795e7a60f665e41b2d4b6803f3844fc48;p=thirdparty%2FPython%2Fcpython.git gh-100824: Fix typo in the documentation of unittest.TestLoader.testNamePatterns (#100825) --- diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst index 7f48146ca830..1577149e9764 100644 --- a/Doc/library/unittest.rst +++ b/Doc/library/unittest.rst @@ -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.