diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-01-08 08:16:59 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-08 08:16:59 (GMT) |
commit | 89ea4f92bc6380ca052dba3f5f54292133db9b8e (patch) | |
tree | aa4a73c4c0e3b7c4c3a5d5af7322bd64945e9c7c /Doc/library/unittest.rst | |
parent | 67e52e54bb85ed10d2e21b7e8f7337085304b299 (diff) | |
download | cpython-89ea4f92bc6380ca052dba3f5f54292133db9b8e.zip cpython-89ea4f92bc6380ca052dba3f5f54292133db9b8e.tar.gz cpython-89ea4f92bc6380ca052dba3f5f54292133db9b8e.tar.bz2 |
gh-100824: Fix typo in the documentation of unittest.TestLoader.testNamePatterns (GH-100825)
(cherry picked from commit 6d3bc4a795e7a60f665e41b2d4b6803f3844fc48)
Co-authored-by: busywhitespace <busywhitespace@tuta.io>
Diffstat (limited to 'Doc/library/unittest.rst')
-rw-r--r-- | Doc/library/unittest.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst index fa4383b..7dc70a8 100644 --- a/Doc/library/unittest.rst +++ b/Doc/library/unittest.rst @@ -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. |