Skipper for normal test functions.
(*args, **kwargs)
| 205 | # We need to define *two* skippers because Python doesn't allow both |
| 206 | # return with value and yield inside the same function. |
| 207 | def skipper_func(*args, **kwargs): |
| 208 | """Skipper for normal test functions.""" |
| 209 | if skip_val(): |
| 210 | raise nose.SkipTest(get_msg(f,msg)) |
| 211 | else: |
| 212 | return f(*args, **kwargs) |
| 213 | |
| 214 | def skipper_gen(*args, **kwargs): |
| 215 | """Skipper for test generators.""" |