diff --git a/Lib/doctest.py b/Lib/doctest.py index dd4d62a210a902..05ed6835c1dfbc 100644 --- a/Lib/doctest.py +++ b/Lib/doctest.py @@ -1989,8 +1989,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.