Skip to content

Commit 3e0ead0

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

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
@@ -1989,8 +1989,8 @@ def testmod(m=None, name=None, globs=None, verbose=None,
19891989
from module m (or the current module if m is not supplied), starting
19901990
with m.__doc__.
19911991
1992-
Also test examples reachable from dict m.__test__ if it exists and is
1993-
not None. m.__test__ maps names to functions, classes and strings;
1992+
Also test examples reachable from dict m.__test__ if it exists.
1993+
m.__test__ maps names to functions, classes and strings;
19941994
function and class docstrings are tested even if the name is private;
19951995
strings are tested directly, as if they were docstrings.
19961996

0 commit comments

Comments
 (0)