MCPcopy Index your code
hub / github.com/python/cpython / debug_src

Function debug_src

Lib/doctest.py:2817–2820  ·  view source on GitHub ↗

Debug a single doctest docstring, in argument `src`

(src, pm=False, globs=None)

Source from the content-addressed store, hash-verified

2815 return testsrc
2816
2817def debug_src(src, pm=False, globs=None):
2818 """Debug a single doctest docstring, in argument `src`"""
2819 testsrc = script_from_examples(src)
2820 debug_script(testsrc, pm, globs)
2821
2822def debug_script(src, pm=False, globs=None):
2823 "Debug a test script. `src` is the script, as a string."

Callers

nothing calls this directly

Calls 2

script_from_examplesFunction · 0.85
debug_scriptFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…