https://github.com/python/cpython/commit/894d30c6500a40e551330a8be9f26ce1590cafda
commit: 894d30c6500a40e551330a8be9f26ce1590cafda
branch: 3.13
author: Miss Islington (bot) <31488909+miss-isling...@users.noreply.github.com>
committer: serhiy-storchaka <storch...@gmail.com>
date: 2025-07-15T15:59:45Z
summary:

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

Co-authored-by: Serhiy Storchaka <storch...@gmail.com>

files:
M Doc/library/doctest.rst

diff --git a/Doc/library/doctest.rst b/Doc/library/doctest.rst
index 3cf2a6bbbd0cbd..d1ccfc20981523 100644
--- a/Doc/library/doctest.rst
+++ b/Doc/library/doctest.rst
@@ -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

_______________________________________________
Python-checkins mailing list -- python-checkins@python.org
To unsubscribe send an email to python-checkins-le...@python.org
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: arch...@mail-archive.com

Reply via email to