On this page
doctest.debug_src
Prev: doctest.debug | Up: doctest | Next: doctest.DebugRunner
Rel: doctest.debug, doctest.DebugRunner, doctest.DocFileSuite, doctest.DocTest
Ref: docs.python.org — doctest.debug_src
Tags: #public #python3 #stdlib #doctest
Import
import doctest
from doctest import debug_src
Signature & Overview
doctest.debug_src(src, pm=False, globs=None)
Debug a single doctest docstring, in argument src
Usage
import doctest
# Interactive pdb helper for a raw docstring string
assert callable(doctest.debug_src)
Gotchas
- Interactive only: Converts docstring examples to a script and runs under
pdb.
REPL Inspect
from doctest import debug_src
help(debug_src)
Linked from
- tuts/python3/stdlib_module/doctest
- tuts/python3/stdlib_module/doctest/debug
- tuts/python3/stdlib_module/doctest/DebugRunner
- tuts/python3/stdlib_module/doctest/DocFileSuite
- 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/DebugRunner Linked here; links to this page; shared tags: #doctest, #stdlib
- tuts/python3/stdlib_module/doctest/DocFileSuite 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