8000 gh-108828: Support selecting tests by labels by serhiy-storchaka · Pull Request #108829 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-108828: Support selecting tests by labels #108829

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

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Fix Sphinx warnings.
  • Loading branch information
serhiy-storchaka committed Sep 11, 2023
commit 5ae71615d3200a61b737ca8f4f7723f9ae0ad13d
12 changes: 6 additions & 6 deletions Doc/library/test.rst
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ The :mod:`test.support` module defines the following functions:
``True`` if called by a function whose ``__name__`` is ``'__main__'``.
Used when tests are executed by :mod:`test.regrtest`.

If called at the top level, sets label "requires_\ *resource*" on the module.
If called at the top level, sets label "requires\_\ *resource*" on the module.


.. function:: sortdict(dict)
Expand Down Expand Up @@ -818,7 +818,7 @@ The :mod:`test.support` module defines the following functions:
.. decorator:: requires_resource(resource)

Decorator for skipping tests if *resource* is not available.
Adds label "requires_\ *resource*".
Adds label "requires\_\ *resource*".


.. decorator:: requires_docstrings
Expand All @@ -842,9 +842,9 @@ The :mod:`test.support` module defines the following functions:

Decorator for invoking :func:`check_impl_detail` on *guards*. If that
returns ``False``, then uses *msg* as the reason for skipping the test.
For every keyword argument *implname* adds a label
"impl_detail_\ *implname*" if its value is true or
"impl_detail_no_\ *implname*" otherwise.
For every keyword argument *name* adds a label
"impl_detail\_\ *name*" if its value is true or
"impl_detail_no\_\ *name*" otherwise.

.. decorator:: no_tracing

Expand Down Expand Up @@ -1661,7 +1661,7 @@ The :mod:`test.support.import_helper` module provides support for import tests.
optional for others, set *required_on* to an iterable of platform prefixes
which will be compared against :data:`sys.platform`.

If called at the top level, sets label "requires_\ *name*" on the module.
If called at the top level, sets label "requires\_\ *name*" on the module.

.. versionadded:: 3.1

Expand Down
0