Show More
@@ -9,6 +9,7 import sys | |||
|
9 | 9 | # Our own |
|
10 | 10 | from IPython.testing import decorators as dec |
|
11 | 11 | from IPython.testing.skipdoctest import skip_doctest |
|
12 | from IPython.utils.text import dedent | |
|
12 | 13 | |
|
13 | 14 | #----------------------------------------------------------------------------- |
|
14 | 15 | # Utilities |
@@ -84,11 +85,13 def test_skip_dt_decorator(): | |||
|
84 | 85 | """Doctest-skipping decorator should preserve the docstring. |
|
85 | 86 | """ |
|
86 | 87 | # Careful: 'check' must be a *verbatim* copy of the doctest_bad docstring! |
|
87 | check = """A function whose doctest we need to skip. | |
|
88 | check = dedent( | |
|
89 | """A function whose doctest we need to skip. | |
|
88 | 90 |
|
|
89 | 91 |
|
|
90 | 92 |
|
|
91 | 93 |
|
|
94 | ) | |
|
92 | 95 | # Fetch the docstring from doctest_bad after decoration. |
|
93 | 96 | val = doctest_bad.__doc__ |
|
94 | 97 |
General Comments 0
You need to be logged in to leave comments.
Login now