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