]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix index entry and anchor for module.__test__ (GH-136674)
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 15 Jul 2025 15:52:51 +0000 (18:52 +0300)
committerGitHub <noreply@github.com>
Tue, 15 Jul 2025 15:52:51 +0000 (18:52 +0300)
It was "doctest.module attribute". Now it is "module attribute".

Doc/library/doctest.rst

index fb43cf918b84dd2ccc998ab37a165090d9755957..5a2c6bdd27c386a469fa82b10925dfc6a03b16ee 100644 (file)
@@ -311,9 +311,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