##// END OF EJS Templates
Fix skip decorator....
Matthias Bussonnier -
Show More
@@ -245,8 +245,10 b' def skip(msg=None):'
245 245 Decorator, which, when applied to a function, causes SkipTest
246 246 to be raised, with the optional message added.
247 247 """
248
249 return skipif(True,msg)
248 if msg and not isinstance(msg, str):
249 raise ValueError('invalid object passed to `@skip` decorator, did you '
250 'meant `@skip()` with brackets ?')
251 return skipif(True, msg)
250 252
251 253
252 254 def onlyif(condition, msg):
@@ -46,7 +46,7 b' def trivial():'
46 46 pass
47 47
48 48
49 @dec.skip
49 @dec.skip()
50 50 def test_deliberately_broken():
51 51 """A deliberately broken test - we want to skip this one."""
52 52 1/0
General Comments 0
You need to be logged in to leave comments. Login now