]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix the doctest.testmod() docstring (GH-136675)
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 15 Jul 2025 16:42:02 +0000 (19:42 +0300)
committerGitHub <noreply@github.com>
Tue, 15 Jul 2025 16:42:02 +0000 (19:42 +0300)
__test__ = None is not supported since Python 2.4.

Lib/doctest.py

index c8c95ecbb273b2734e93d9ec4dd4cbc7c6a9532c..e77823f64b67e4df7beef290db04ae89e885bac3 100644 (file)
@@ -1997,8 +1997,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.