Skip to content

Commit 2b24913

Browse files
Fix Sphinx warnings.
1 parent 9d2f5ac commit 2b24913

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Doc/library/test.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ The :mod:`test.support` module defines the following functions:
482482
``True`` if called by a function whose ``__name__`` is ``'__main__'``.
483483
Used when tests are executed by :mod:`test.regrtest`.
484484

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

487487

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

820820
Decorator for skipping tests if *resource* is not available.
821-
Adds label "requires_\ *resource*".
821+
Adds label "requires\_\ *resource*".
822822

823823

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

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

849849
.. decorator:: no_tracing
850850

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

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

16661666
.. versionadded:: 3.1
16671667

0 commit comments

Comments
 (0)