Show More
@@ -297,7 +297,7 def module_not_available(module): | |||||
297 | # Decorators to skip certain tests on specific platforms. |
|
297 | # Decorators to skip certain tests on specific platforms. | |
298 | skip_win32 = skipif(sys.platform == 'win32', |
|
298 | skip_win32 = skipif(sys.platform == 'win32', | |
299 | "This test does not run under Windows") |
|
299 | "This test does not run under Windows") | |
300 |
skip_linux = skipif(sys.platform |
|
300 | skip_linux = skipif(sys.platform.startswith('linux'), | |
301 | "This test does not run under Linux") |
|
301 | "This test does not run under Linux") | |
302 | skip_osx = skipif(sys.platform == 'darwin',"This test does not run under OS X") |
|
302 | skip_osx = skipif(sys.platform == 'darwin',"This test does not run under OS X") | |
303 |
|
303 | |||
@@ -305,7 +305,7 skip_osx = skipif(sys.platform == 'darwin',"This test does not run under OS X") | |||||
305 | # Decorators to skip tests if not on specific platforms. |
|
305 | # Decorators to skip tests if not on specific platforms. | |
306 | skip_if_not_win32 = skipif(sys.platform != 'win32', |
|
306 | skip_if_not_win32 = skipif(sys.platform != 'win32', | |
307 | "This test only runs under Windows") |
|
307 | "This test only runs under Windows") | |
308 |
skip_if_not_linux = skipif(sys.platform |
|
308 | skip_if_not_linux = skipif(not sys.platform.startswith('linux'), | |
309 | "This test only runs under Linux") |
|
309 | "This test only runs under Linux") | |
310 | skip_if_not_osx = skipif(sys.platform != 'darwin', |
|
310 | skip_if_not_osx = skipif(sys.platform != 'darwin', | |
311 | "This test only runs under OSX") |
|
311 | "This test only runs under OSX") |
@@ -176,7 +176,7 def test_skip_dt_decorator2(): | |||||
176 |
|
176 | |||
177 | @dec.skip_linux |
|
177 | @dec.skip_linux | |
178 | def test_linux(): |
|
178 | def test_linux(): | |
179 |
nt.assert_ |
|
179 | nt.assert_false(sys.platform.startswith('linux'),"This test can't run under linux") | |
180 |
|
180 | |||
181 | @dec.skip_win32 |
|
181 | @dec.skip_win32 | |
182 | def test_win32(): |
|
182 | def test_win32(): |
General Comments 0
You need to be logged in to leave comments.
Login now