mirror of
https://github.com/python/cpython.git
synced 2026-01-06 07:22:09 +00:00
[3.14] Fix the doctest.testmod() docstring (GH-136675) (GH-136690)
__test__ = None is not supported since Python 2.4.
(cherry picked from commit cb59eaefed)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
This commit is contained in:
parent
323974295d
commit
d888f46fba
1 changed files with 2 additions and 2 deletions
|
|
@ -1991,8 +1991,8 @@ def testmod(m=None, name=None, globs=None, verbose=None,
|
|||
from module m (or the current module if m is not supplied), starting
|
||||
with m.__doc__.
|
||||
|
||||
Also test examples reachable from dict m.__test__ if it exists and is
|
||||
not None. m.__test__ maps names to functions, classes and strings;
|
||||
Also test examples reachable from dict m.__test__ if it exists.
|
||||
m.__test__ maps names to functions, classes and strings;
|
||||
function and class docstrings are tested even if the name is private;
|
||||
strings are tested directly, as if they were docstrings.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue