Skip to content

[3.11] gh-100824: Fix typo in the documentation of unittest.TestLoader.testNamePatterns (GH-100825) #100838

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 8, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Doc/library/unittest.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down