##// END OF EJS Templates
add generic @skip_without(mod) test decorator
MinRK -
Show More
@@ -311,11 +311,15 b" skip_if_not_osx = skipif(sys.platform != 'darwin',"
311 311 "This test only runs under OSX")
312 312
313 313 # Other skip decorators
314 skipif_not_numpy = skipif(module_not_available('numpy'),"This test requires numpy")
315 314
316 skipif_not_matplotlib = skipif(module_not_available('matplotlib'),"This test requires matplotlib")
315 # generic skip without module
316 skip_without = lambda mod: skipif(module_not_available(mod), "This test requires %s" % mod)
317 317
318 skipif_not_sympy = skipif(module_not_available('sympy'),"This test requires sympy")
318 skipif_not_numpy = skip_without('numpy')
319
320 skipif_not_matplotlib = skip_without('matplotlib')
321
322 skipif_not_sympy = skip_without('sympy')
319 323
320 324 skip_known_failure = knownfailureif(True,'This test is known to fail')
321 325
General Comments 0
You need to be logged in to leave comments. Login now