Skip message with information about function being skipped.
(func,msg=None)
| 65 | skip_val = lambda : skip_condition |
| 66 | |
| 67 | def get_msg(func,msg=None): |
| 68 | """Skip message with information about function being skipped.""" |
| 69 | if msg is None: |
| 70 | out = 'Test skipped due to test condition' |
| 71 | else: |
| 72 | out = '\n'+msg |
| 73 | |
| 74 | return "Skipping test: %s%s" % (func.__name__,out) |
| 75 | |
| 76 | # We need to define *two* skippers because Python doesn't allow both |
| 77 | # return with value and yield inside the same function. |
no outgoing calls
no test coverage detected