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 f14a0f3 commit a282fc2Copy full SHA for a282fc2
IPython/testing/tests/test_decorators.py
@@ -85,17 +85,16 @@ def test_skip_dt_decorator():
85
"""Doctest-skipping decorator should preserve the docstring.
86
"""
87
# Careful: 'check' must be a *verbatim* copy of the doctest_bad docstring!
88
- check = dedent(
89
- """A function whose doctest we need to skip.
+ check = """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
-
98
- assert check == val, "doctest_bad docstrings don't match"
+ assert dedent(check) == dedent(val), "doctest_bad docstrings don't match"
99
100
101
# Doctest skipping should work for class methods too
0 commit comments