Skip to content

Commit

Permalink
gh-100824: Fix typo in the documentation of unittest.TestLoader.testN…
Browse files Browse the repository at this point in the history
…amePatterns (GH-100825)

(cherry picked from commit 6d3bc4a)

Co-authored-by: busywhitespace <busywhitespace@tuta.io>
  • Loading branch information
miss-islington and busywhitespace authored Jan 8, 2023
1 parent 67e52e5 commit 89ea4f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Doc/library/unittest.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 89ea4f9

Please sign in to comment.