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

Class DocTestSkip

IPython/testing/plugin/ipdoctest.py:68–82  ·  view source on GitHub ↗

Object wrapper for doctests to be skipped.

Source from the content-addressed store, hash-verified

66
67
68class DocTestSkip(object):
69 """Object wrapper for doctests to be skipped."""
70
71 ds_skip = """Doctest to skip.
72 >>> 1 #doctest: +SKIP
73 """
74
75 def __init__(self,obj):
76 self.obj = obj
77
78 def __getattribute__(self,key):
79 if key == '__doc__':
80 return DocTestSkip.ds_skip
81 else:
82 return getattr(object.__getattribute__(self,'obj'),key)
83
84# Modified version of the one in the stdlib, that fixes a python bug (doctests
85# not found in extension modules, http://bugs.python.org/issue3158)

Callers 1

_findMethod · 0.85

Calls

no outgoing calls

Tested by 1

_findMethod · 0.68