PyDocs

Nav

Development Tools

DocTestRunner.run

  • DocTestRunner.run(test, compileflags=None, out=None, clear_globs=True)
Run the examples in `test`, and display the results using the
writer function `out`.

The examples are run in the namespace `test.globs`.  If
`clear_globs` is true (the default), then this namespace will
be cleared after the test runs, to help with garbage
collection.  If you would like to examine the namespace after
the test completes, then use `clear_globs=False`.

`compileflags` gives the set of flags that should be used by
the Python compiler when running the examples.  If not
specified, then it will default to the set of future-import
flags that apply to `globs`.

The output of each example is checked using
`DocTestRunner.check_output`, and the results are formatted by
the `DocTestRunner.report_*` methods.
0 Examples
No examples for doctest/DocTestRunner.run.
See Also
No see-alsos for doctest/DocTestRunner.run
0 Notes
No notes for DocTestRunner.run