##// END OF EJS Templates
check linux with startswith('linux') instead of =='linux2'...
MinRK -
Show More
@@ -297,7 +297,7 b' 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 == 'linux2',
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 b' 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 != 'linux2',
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 b' 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_not_equals(sys.platform,'linux2',"This test can't run under linux")
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