File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111
1212# Our own
1313from IPython .testing import decorators as dec
14+ from IPython .testing .skipdoctest import skip_doctest
1415
1516#-----------------------------------------------------------------------------
1617# Utilities
@@ -59,6 +60,7 @@ def test_deliberately_broken2():
5960
6061# Verify that we can correctly skip the doctest for a function at will, but
6162# that the docstring itself is NOT destroyed by the decorator.
63+ @skip_doctest
6264def doctest_bad (x ,y = 1 ,** k ):
6365 """A function whose doctest we need to skip.
6466
@@ -106,6 +108,7 @@ class FooClass(object):
106108 2
107109 """
108110
111+ @skip_doctest
109112 def __init__ (self ,x ):
110113 """Make a FooClass.
111114
@@ -117,6 +120,7 @@ def __init__(self,x):
117120 print ('Making a FooClass.' )
118121 self .x = x
119122
123+ @skip_doctest
120124 def bar (self ,y ):
121125 """Example:
122126
You can’t perform that action at this time.
0 commit comments