Show More
@@ -6,9 +6,6 b'' | |||
|
6 | 6 | import inspect |
|
7 | 7 | import sys |
|
8 | 8 | |
|
9 | # Third party | |
|
10 | import nose.tools as nt | |
|
11 | ||
|
12 | 9 | # Our own |
|
13 | 10 | from IPython.testing import decorators as dec |
|
14 | 11 | |
@@ -93,7 +90,7 b' def test_skip_dt_decorator():' | |||
|
93 | 90 | # Fetch the docstring from doctest_bad after decoration. |
|
94 | 91 | val = doctest_bad.__doc__ |
|
95 | 92 | |
|
96 |
|
|
|
93 | assert check == val, "doctest_bad docstrings don't match" | |
|
97 | 94 | |
|
98 | 95 | |
|
99 | 96 | # Doctest skipping should work for class methods too |
@@ -152,13 +149,14 b' def test_skip_dt_decorator2():' | |||
|
152 | 149 | |
|
153 | 150 | @dec.skip_linux |
|
154 | 151 | def test_linux(): |
|
155 |
|
|
|
152 | assert sys.platform.startswith("linux") is False, "This test can't run under linux" | |
|
153 | ||
|
156 | 154 | |
|
157 | 155 | @dec.skip_win32 |
|
158 | 156 | def test_win32(): |
|
159 |
|
|
|
157 | assert sys.platform != "win32", "This test can't run under windows" | |
|
158 | ||
|
160 | 159 | |
|
161 | 160 | @dec.skip_osx |
|
162 | 161 | def test_osx(): |
|
163 |
|
|
|
164 | ||
|
162 | assert sys.platform != "darwin", "This test can't run under osx" |
General Comments 0
You need to be logged in to leave comments.
Login now