Skip to content

Commit 894d30c

Browse files
[3.13] Fix index entry and anchor for module.__test__ (GH-136674) (GH-136689)
It was "doctest.module attribute". Now it is "module attribute". (cherry picked from commit 7689407) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
1 parent 9c11745 commit 894d30c

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
@@ -307,9 +307,13 @@ Which Docstrings Are Examined?
307307
The module docstring, and all function, class and method docstrings are
308308
searched. Objects imported into the module are not searched.
309309

310+
.. currentmodule:: None
311+
310312
.. attribute:: module.__test__
311313
:no-typesetting:
312314

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

0 commit comments

Comments
 (0)