On this page
doctest.DocFileSuite
Prev: doctest.DebugRunner | Up: doctest | Next: doctest.DocTest
Rel: doctest.debug, doctest.debug_src, doctest.DebugRunner, doctest.DocTest
Ref: docs.python.org — doctest.DocFileSuite
Tags: #public #python3 #stdlib #doctest
Import
import doctest
from doctest import DocFileSuite
Signature & Overview
doctest.DocFileSuite(*paths, **kw)
A unittest suite for one or more doctest files.
Usage
import doctest
# Wraps one or more Markdown/text files containing >>> examples into a unittest.TestSuite
assert callable(doctest.DocFileSuite)
Gotchas
- Integrates docs into
unittestdiscovery: Paths are relative to the calling module unlessmodule_relative=False.
REPL Inspect
from doctest import DocFileSuite
help(DocFileSuite)
Linked from
- tuts/python3/stdlib_module/doctest
- tuts/python3/stdlib_module/doctest/debug
- tuts/python3/stdlib_module/doctest/debug_src
- tuts/python3/stdlib_module/doctest/DebugRunner
- tuts/python3/stdlib_module/doctest/DocTest
- tuts/python3/stdlib_module/doctest/DocTestFailure
- tuts/python3/stdlib_module/doctest/DocTestFinder
- tuts/python3/stdlib_module/doctest/DocTestParser
- tuts/python3/stdlib_module/doctest/DocTestRunner
- tuts/python3/stdlib_module/doctest/DocTestSuite
- tuts/python3/stdlib_module/doctest/Example
- tuts/python3/stdlib_module/doctest/OutputChecker
- tuts/python3/stdlib_module/doctest/register_optionflag
- tuts/python3/stdlib_module/doctest/run_docstring_examples
- tuts/python3/stdlib_module/doctest/script_from_examples
- tuts/python3/stdlib_module/doctest/set_unittest_reportflags
- tuts/python3/stdlib_module/doctest/testfile
- tuts/python3/stdlib_module/doctest/testmod
- tuts/python3/stdlib_module/doctest/testsource
- tuts/python3/stdlib_module/doctest/UnexpectedException
Related notes
- tuts/python3/stdlib_module/doctest/debug Linked here; links to this page; shared tags: #doctest, #stdlib
- tuts/python3/stdlib_module/doctest/debug_src Linked here; links to this page; shared tags: #doctest, #stdlib
- tuts/python3/stdlib_module/doctest/DebugRunner Linked here; links to this page; shared tags: #doctest, #stdlib
- tuts/python3/stdlib_module/doctest/DocTest Linked here; links to this page; shared tags: #doctest, #stdlib
- tuts/python3/stdlib_module/doctest/DocTestFailure links to this page; shared tags: #doctest, #stdlib
- tuts/python3/stdlib_module/doctest/DocTestFinder links to this page; shared tags: #doctest, #stdlib
- tuts/python3/stdlib_module/doctest/DocTestParser links to this page; shared tags: #doctest, #stdlib
- tuts/python3/stdlib_module/doctest/DocTestRunner links to this page; shared tags: #doctest, #stdlib
- tuts/python3/stdlib_module/doctest/DocTestSuite links to this page; shared tags: #doctest, #stdlib
- tuts/python3/stdlib_module/doctest/Example links to this page; shared tags: #doctest, #stdlib