From fda2ebeadd29608aa3e5c11f17bf836d2b1326b3 2021-10-25 16:07:25 From: Nikita Kniazev Date: 2021-10-25 16:07:25 Subject: [PATCH] Partly revert "remove now-obsolete use of skip_doctest outside core" This partly reverts commit 02234da0d461f5ddee142d51952dc10a86b8074e. test_decorators.py is intended to test skip_doctest, the removing was wrong. --- diff --git a/IPython/testing/tests/test_decorators.py b/IPython/testing/tests/test_decorators.py index dc1ff41..801ac28 100644 --- a/IPython/testing/tests/test_decorators.py +++ b/IPython/testing/tests/test_decorators.py @@ -11,6 +11,7 @@ import nose.tools as nt # Our own from IPython.testing import decorators as dec +from IPython.testing.skipdoctest import skip_doctest #----------------------------------------------------------------------------- # Utilities @@ -59,6 +60,7 @@ def test_deliberately_broken2(): # Verify that we can correctly skip the doctest for a function at will, but # that the docstring itself is NOT destroyed by the decorator. +@skip_doctest def doctest_bad(x,y=1,**k): """A function whose doctest we need to skip. @@ -106,6 +108,7 @@ class FooClass(object): 2 """ + @skip_doctest def __init__(self,x): """Make a FooClass. @@ -117,6 +120,7 @@ class FooClass(object): print('Making a FooClass.') self.x = x + @skip_doctest def bar(self,y): """Example: