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