Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf8503e commit d9bbeedCopy full SHA for d9bbeed
1 file changed
IPython/testing/tests/test_decorators.py
@@ -9,6 +9,7 @@
9
# Our own
10
from IPython.testing import decorators as dec
11
from IPython.testing.skipdoctest import skip_doctest
12
+from IPython.utils.text import dedent
13
14
#-----------------------------------------------------------------------------
15
# Utilities
@@ -84,11 +85,13 @@ def test_skip_dt_decorator():
84
85
"""Doctest-skipping decorator should preserve the docstring.
86
"""
87
# Careful: 'check' must be a *verbatim* copy of the doctest_bad docstring!
- check = """A function whose doctest we need to skip.
88
+ check = dedent(
89
+ """A function whose doctest we need to skip.
90
91
>>> 1+1
92
3
93
94
+ )
95
# Fetch the docstring from doctest_bad after decoration.
96
val = doctest_bad.__doc__
97
0 commit comments