@@ -280,7 +280,7 @@ searched. Objects imported into the module are not searched.
280280In addition, there are cases when you want tests to be part of a module but not part
281281of the help text, which requires that the tests not be included in the docstring.
282282Doctest looks for a module-level variable called ``__test__ `` and uses it to locate other
283- tests. If ``M.__test__ `` exists and is truthy , it must be a dict, and each
283+ tests. If ``M.__test__ `` exists, it must be a dict, and each
284284entry maps a (string) name to a function object, class object, or string.
285285Function and class object docstrings found from ``M.__test__ `` are searched, and
286286strings are treated as if they were docstrings. In output, a key ``K `` in
@@ -944,8 +944,8 @@ and :ref:`doctest-simple-testfile`.
944944 (or module :mod: `__main__ ` if *m * is not supplied or is ``None ``), starting with
945945 ``m.__doc__ ``.
946946
947- Also test examples reachable from dict ``m.__test__ ``, if it exists and is not
948- ``None ``. `` m.__test__ `` maps names (strings) to functions, classes and
947+ Also test examples reachable from dict ``m.__test__ ``, if it exists.
948+ ``m.__test__ `` maps names (strings) to functions, classes and
949949 strings; function and class docstrings are searched for examples; strings are
950950 searched directly, as if they were docstrings.
951951
0 commit comments