Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd888f46

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 commitcb59eae)Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
1 parent3239742 commitd888f46

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)

[8]ページ先頭

©2009-2025 Movatter.jp