https://github.com/python/cpython/commit/d888f46fba3defa9fa3b39509827768bf3ac01ff
commit: d888f46fba3defa9fa3b39509827768bf3ac01ff
branch: 3.14
author: Miss Islington (bot) <[email protected]>
committer: serhiy-storchaka <[email protected]>
date: 2025-07-15T17:07:01Z
summary:

[3.14] Fix the doctest.testmod() docstring (GH-136675) (GH-136690)

__test__ = None is not supported since Python 2.4.
(cherry picked from commit cb59eaefeda5ff44ac0c742bff2b8afc023be313)

Co-authored-by: Serhiy Storchaka <[email protected]>

files:
M Lib/doctest.py

diff --git a/Lib/doctest.py b/Lib/doctest.py
index dec10a345165da..8860bed2a9f710 100644
--- a/Lib/doctest.py
+++ b/Lib/doctest.py
@@ -1991,8 +1991,8 @@ def testmod(m=None, name=None, globs=None, verbose=None,
     from module m (or the current module if m is not supplied), starting
     with m.__doc__.
 
-    Also test examples reachable from dict m.__test__ if it exists and is
-    not None.  m.__test__ maps names to functions, classes and strings;
+    Also test examples reachable from dict m.__test__ if it exists.
+    m.__test__ maps names to functions, classes and strings;
     function and class docstrings are tested even if the name is private;
     strings are tested directly, as if they were docstrings.
 

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to