MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / __init__

Method __init__

tools/python-3.11.9-amd64/Lib/doctest.py:826–846  ·  view source on GitHub ↗

Create a new doctest finder. The optional argument `parser` specifies a class or function that should be used to create new DocTest objects (or objects that implement the same interface as DocTest). The signature for this factory function should match

(self, verbose=False, parser=DocTestParser(),
                 recurse=True, exclude_empty=True)

Source from the content-addressed store, hash-verified

824 """
825
826 def __init__(self, verbose=False, parser=DocTestParser(),
827 recurse=True, exclude_empty=True):
828 """
829 Create a new doctest finder.
830
831 The optional argument `parser` specifies a class or
832 function that should be used to create new DocTest objects (or
833 objects that implement the same interface as DocTest). The
834 signature for this factory function should match the signature
835 of the DocTest constructor.
836
837 If the optional argument `recurse` is false, then `find` will
838 only examine the given object, and not any contained objects.
839
840 If the optional argument `exclude_empty` is false, then `find`
841 will include tests for objects with empty docstrings.
842 """
843 self._parser = parser
844 self._verbose = verbose
845 self._recurse = recurse
846 self._exclude_empty = exclude_empty
847
848 def find(self, obj, name=None, module=None, globs=None, extraglobs=None):
849 """

Callers

nothing calls this directly

Calls 1

DocTestParserClass · 0.85

Tested by

no test coverage detected