Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fda2ebe

Browse files
committed
Partly revert "remove now-obsolete use of skip_doctest outside core"
This partly reverts commit 02234da. test_decorators.py is intended to test skip_doctest, the removing was wrong.
1 parent 9cc2f46 commit fda2ebe

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

IPython/testing/tests/test_decorators.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
# Our own
1313
from 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
6264
def 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

0 commit comments

Comments
 (0)