MCPcopy Create free account
hub / github.com/ipython/ipython / __init__

Method __init__

IPython/testing/ipunittest.py:116–127  ·  view source on GitHub ↗

New decorator. Parameters ---------- verbose : boolean, optional (False) Passed to the doctest finder and runner to control verbosity.

(self, verbose=False)

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 1

DocTestFinderClass · 0.90

Tested by

no test coverage detected