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): |
General Comments 0
You need to be logged in to leave comments.
Login now