]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] Fix index entry and anchor for module.__test__ (GH-136674) (GH-136689)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 15 Jul 2025 15:59:45 +0000 (17:59 +0200)
committerGitHub <noreply@github.com>
Tue, 15 Jul 2025 15:59:45 +0000 (15:59 +0000)
It was "doctest.module attribute". Now it is "module attribute".
(cherry picked from commit 7689407fa4406ab79d7e9e02363f50be4ec35b5e)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Doc/library/doctest.rst

index 3cf2a6bbbd0cbdb8041a8632677fc81ee2b897e4..d1ccfc20981523592bbb099e691f9aecaf56beab 100644 (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