Skip to content

Commit cb59eae

Browse files
Fix the doctest.testmod() docstring (pythonGH-136675)
__test__ = None is not supported since Python 2.4.
1 parent 7689407 commit cb59eae

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
@@ -1997,8 +1997,8 @@ def testmod(m=None, name=None, globs=None, verbose=None,
19971997
from module m (or the current module if m is not supplied), starting
19981998
with m.__doc__.
19991999
2000-
Also test examples reachable from dict m.__test__ if it exists and is
2001-
not None. m.__test__ maps names to functions, classes and strings;
2000+
Also test examples reachable from dict m.__test__ if it exists.
2001+
m.__test__ maps names to functions, classes and strings;
20022002
function and class docstrings are tested even if the name is private;
20032003
strings are tested directly, as if they were docstrings.
20042004

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