New decorator. Parameters ---------- verbose : boolean, optional (False) Passed to the doctest finder and runner to control verbosity.
(self, verbose=False)
| 114 | that). |
| 115 | """ |
| 116 | def __init__(self, verbose=False): |
| 117 | """New decorator. |
| 118 | |
| 119 | Parameters |
| 120 | ---------- |
| 121 | |
| 122 | verbose : boolean, optional (False) |
| 123 | Passed to the doctest finder and runner to control verbosity. |
| 124 | """ |
| 125 | self.verbose = verbose |
| 126 | # We can reuse the same finder for all instances |
| 127 | self.finder = DocTestFinder(verbose=verbose, recurse=False) |
| 128 | |
| 129 | def __call__(self, func): |
| 130 | """Use as a decorator: doctest a function's docstring as a unittest. |
nothing calls this directly
no test coverage detected