MCPcopy Index your code
hub / github.com/python/cpython / __init__

Method __init__

Lib/doctest.py:847–867  ·  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 the s

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

Source from the content-addressed store, hash-verified

845 """
846
847 def __init__(self, verbose=False, parser=DocTestParser(),
848 recurse=True, exclude_empty=True):
849 """
850 Create a new doctest finder.
851
852 The optional argument `parser` specifies a class or
853 function that should be used to create new DocTest objects (or
854 objects that implement the same interface as DocTest). The
855 signature for this factory function should match the signature
856 of the DocTest constructor.
857
858 If the optional argument `recurse` is false, then `find` will
859 only examine the given object, and not any contained objects.
860
861 If the optional argument `exclude_empty` is false, then `find`
862 will include tests for objects with empty docstrings.
863 """
864 self._parser = parser
865 self._verbose = verbose
866 self._recurse = recurse
867 self._exclude_empty = exclude_empty
868
869 def find(self, obj, name=None, module=None, globs=None, extraglobs=None):
870 """

Callers

nothing calls this directly

Calls 1

DocTestParserClass · 0.85

Tested by

no test coverage detected