MCPcopy Index your code
hub / github.com/ipython/ipython / custom_doctest

Method custom_doctest

IPython/sphinxext/ipython_directive.py:888–901  ·  view source on GitHub ↗

Perform a specialized doctest.

(self, decorator, input_lines, found, submitted)

Source from the content-addressed store, hash-verified

886 return output
887
888 def custom_doctest(self, decorator, input_lines, found, submitted):
889 """
890 Perform a specialized doctest.
891
892 """
893 from .custom_doctests import doctests
894
895 args = decorator.split()
896 doctest_type = args[1]
897 if doctest_type in doctests:
898 doctests[doctest_type](self, args, input_lines, found, submitted)
899 else:
900 e = "Invalid option to @doctest: {0}".format(doctest_type)
901 raise Exception(e)
902
903
904class IPythonDirective(Directive):

Callers 1

process_outputMethod · 0.95

Calls 1

formatMethod · 0.45

Tested by

no test coverage detected