MCPcopy Create free account
hub / github.com/ipython/ipython / skip_doctest

Function skip_doctest

IPython/testing/skipdoctest.py:12–19  ·  view source on GitHub ↗

Decorator - mark a function or method for skipping its doctest. This decorator allows you to mark a function whose docstring you wish to omit from testing, while preserving the docstring for introspection, help, etc.

(f)

Source from the content-addressed store, hash-verified

10
11
12def skip_doctest(f):
13 """Decorator - mark a function or method for skipping its doctest.
14
15 This decorator allows you to mark a function whose docstring you wish to
16 omit from testing, while preserving the docstring for introspection, help,
17 etc."""
18 f.skip_doctest = True
19 return f

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected