doctest.DocTest.__init__

DocTest.__init__(examples, globs, name, filename, lineno, docstring)[source]

Create a new DocTest containing the given examples. The DocTest’s globals are initialized with a copy of globs.