Skipper for normal test functions.
(*args, **kwargs)
| 76 | # We need to define *two* skippers because Python doesn't allow both |
| 77 | # return with value and yield inside the same function. |
| 78 | def skipper_func(*args, **kwargs): |
| 79 | """Skipper for normal test functions.""" |
| 80 | if skip_val(): |
| 81 | raise nose.SkipTest(get_msg(f,msg)) |
| 82 | else: |
| 83 | return f(*args, **kwargs) |
| 84 | |
| 85 | def skipper_gen(*args, **kwargs): |
| 86 | """Skipper for test generators.""" |