def trace_module(no_print=True):
pwd = os.path.dirname(__file__)<EOL>script_name = os.path.join(pwd, "<STR_LIT>")<EOL>with pexdoc.ExDocCxt() as exdoc_obj:<EOL><INDENT>if pytest.main(["<STR_LIT>", "<STR_LIT>", "<STR_LIT>", "<STR_LIT>".format(script_name)]):<EOL><INDENT>raise RuntimeError("<STR_LIT>")<EOL><DEDENT><DEDENT>if not no_print:<EOL><INDENT>module_prefix = "<STR_LIT>"<EOL>callable_names = ["<STR_LIT>", "<STR_LIT>"]<EOL>for callable_name in callable_names:<EOL><INDENT>callable_name = module_prefix + callable_name<EOL>print("<STR_LIT>".format(callable_name))<EOL>print(exdoc_obj.get_sphinx_doc(callable_name, width=<NUM_LIT>))<EOL>print("<STR_LIT:\n>")<EOL><DEDENT><DEDENT>return copy.copy(exdoc_obj)<EOL>
Trace my_module exceptions.