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)
| 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 | """ |
nothing calls this directly
no test coverage detected