[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 7689407fa4)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
This commit is contained in:
Miss Islington (bot) 2025-07-15 17:59:45 +02:00 committed by GitHub
parent 9c11745ede
commit 894d30c650
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -307,9 +307,13 @@ Which Docstrings Are Examined?
The module docstring, and all function, class and method docstrings are
searched. Objects imported into the module are not searched.
.. currentmodule:: None
.. attribute:: module.__test__
:no-typesetting:
.. currentmodule:: doctest
In addition, there are cases when you want tests to be part of a module but not part
of the help text, which requires that the tests not be included in the docstring.
Doctest looks for a module-level variable called ``__test__`` and uses it to locate other