We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2500eb9 commit 7689407Copy full SHA for 7689407
Doc/library/doctest.rst
@@ -311,9 +311,13 @@ Which Docstrings Are Examined?
311
The module docstring, and all function, class and method docstrings are
312
searched. Objects imported into the module are not searched.
313
314
+.. currentmodule:: None
315
+
316
.. attribute:: module.__test__
317
:no-typesetting:
318
319
+.. currentmodule:: doctest
320
321
In addition, there are cases when you want tests to be part of a module but not part
322
of the help text, which requires that the tests not be included in the docstring.
323
Doctest looks for a module-level variable called ``__test__`` and uses it to locate other
0 commit comments