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

Function doctest_bad

IPython/testing/tests/test_decorators.py:62–70  ·  view source on GitHub ↗

A function whose doctest we need to skip. >>> 1+1 3

(x,y=1,**k)

Source from the content-addressed store, hash-verified

60# Verify that we can correctly skip the doctest for a function at will, but
61# that the docstring itself is NOT destroyed by the decorator.
62def doctest_bad(x,y=1,**k):
63 """A function whose doctest we need to skip.
64
65 >>> 1+1
66 3
67 """
68 print('x:',x)
69 print('y:',y)
70 print('k:',k)
71
72
73def call_doctest_bad():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected