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

Commit3e0ead0

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

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)

[8]ページ先頭

©2009-2025 Movatter.jp