Show More
@@ -245,7 +245,9 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 | ||
|
248 | if msg and not isinstance(msg, str): | |
|
249 | raise ValueError('invalid object passed to `@skip` decorator, did you ' | |
|
250 | 'meant `@skip()` with brackets ?') | |
|
249 | 251 | return skipif(True,msg) |
|
250 | 252 | |
|
251 | 253 |
General Comments 0
You need to be logged in to leave comments.
Login now