Skip to content

Commit d888f46

Browse files
[3.14] Fix the doctest.testmod() docstring (GH-136675) (GH-136690)
__test__ = None is not supported since Python 2.4. (cherry picked from commit cb59eae) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
1 parent 3239742 commit d888f46

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/doctest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1991,8 +1991,8 @@ def testmod(m=None, name=None, globs=None, verbose=None,
19911991
from module m (or the current module if m is not supplied), starting
19921992
with m.__doc__.
19931993
1994-
Also test examples reachable from dict m.__test__ if it exists and is
1995-
not None. m.__test__ maps names to functions, classes and strings;
1994+
Also test examples reachable from dict m.__test__ if it exists.
1995+
m.__test__ maps names to functions, classes and strings;
19961996
function and class docstrings are tested even if the name is private;
19971997
strings are tested directly, as if they were docstrings.
19981998

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy