@@ -280,7 +280,7 @@ searched. Objects imported into the module are not searched.
280
280
In addition, there are cases when you want tests to be part of a module but not part
281
281
of the help text, which requires that the tests not be included in the docstring.
282
282
Doctest 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
284
284
entry maps a (string) name to a function object, class object, or string.
285
285
Function and class object docstrings found from ``M.__test__ `` are searched, and
286
286
strings are treated as if they were docstrings. In output, a key ``K `` in
@@ -942,8 +942,8 @@ and :ref:`doctest-simple-testfile`.
942
942
(or module :mod: `__main__ ` if *m * is not supplied or is ``None ``), starting with
943
943
``m.__doc__ ``.
944
944
945
- Also test examples reachable from dict ``m.__test__ ``, if it exists and is not
946
- ``None ``. `` m.__test__ `` maps names (strings) to functions, classes and
945
+ Also test examples reachable from dict ``m.__test__ ``, if it exists.
946
+ ``m.__test__ `` maps names (strings) to functions, classes and
947
947
strings; function and class docstrings are searched for examples; strings are
948
948
searched directly, as if they were docstrings.
949
949
0 commit comments