Show More
@@ -11,6 +11,7 b' import nose.tools as nt' | |||
|
11 | 11 | |
|
12 | 12 | # Our own |
|
13 | 13 | from IPython.testing import decorators as dec |
|
14 | from IPython.testing.skipdoctest import skip_doctest | |
|
14 | 15 | |
|
15 | 16 | #----------------------------------------------------------------------------- |
|
16 | 17 | # Utilities |
@@ -59,6 +60,7 b' def test_deliberately_broken2():' | |||
|
59 | 60 | |
|
60 | 61 | # Verify that we can correctly skip the doctest for a function at will, but |
|
61 | 62 | # that the docstring itself is NOT destroyed by the decorator. |
|
63 | @skip_doctest | |
|
62 | 64 | def doctest_bad(x,y=1,**k): |
|
63 | 65 | """A function whose doctest we need to skip. |
|
64 | 66 | |
@@ -106,6 +108,7 b' class FooClass(object):' | |||
|
106 | 108 | 2 |
|
107 | 109 | """ |
|
108 | 110 | |
|
111 | @skip_doctest | |
|
109 | 112 | def __init__(self,x): |
|
110 | 113 | """Make a FooClass. |
|
111 | 114 | |
@@ -117,6 +120,7 b' class FooClass(object):' | |||
|
117 | 120 | print('Making a FooClass.') |
|
118 | 121 | self.x = x |
|
119 | 122 | |
|
123 | @skip_doctest | |
|
120 | 124 | def bar(self,y): |
|
121 | 125 | """Example: |
|
122 | 126 |
General Comments 0
You need to be logged in to leave comments.
Login now