Skip to content

Commit 7689407

Browse files
Fix index entry and anchor for module.__test__ (GH-136674)
It was "doctest.module attribute". Now it is "module attribute".
1 parent 2500eb9 commit 7689407

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Doc/library/doctest.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,9 +311,13 @@ Which Docstrings Are Examined?
311311
The module docstring, and all function, class and method docstrings are
312312
searched. Objects imported into the module are not searched.
313313

314+
.. currentmodule:: None
315+
314316
.. attribute:: module.__test__
315317
:no-typesetting:
316318

319+
.. currentmodule:: doctest
320+
317321
In addition, there are cases when you want tests to be part of a module but not part
318322
of the help text, which requires that the tests not be included in the docstring.
319323
Doctest looks for a module-level variable called ``__test__`` and uses it to locate other

0 commit comments

Comments
 (0)