MCPcopy Index your code
hub / github.com/RustPython/RustPython / debug_src

Function debug_src

Lib/doctest.py:2741–2744  ·  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

2739 return testsrc
2740
2741def debug_src(src, pm=False, globs=None):
2742 """Debug a single doctest docstring, in argument `src`"""
2743 testsrc = script_from_examples(src)
2744 debug_script(testsrc, pm, globs)
2745
2746def debug_script(src, pm=False, globs=None):
2747 "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