MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / debug_src

Function debug_src

tools/python-3.11.9-amd64/Lib/doctest.py:2652–2655  ·  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

2650 return testsrc
2651
2652def debug_src(src, pm=False, globs=None):
2653 """Debug a single doctest docstring, in argument `src`'"""
2654 testsrc = script_from_examples(src)
2655 debug_script(testsrc, pm, globs)
2656
2657def debug_script(src, pm=False, globs=None):
2658 "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