Skip message with information about function being skipped.
(func,msg=None)
| 197 | skip_val = lambda : skip_condition |
| 198 | |
| 199 | def get_msg(func,msg=None): |
| 200 | """Skip message with information about function being skipped.""" |
| 201 | if msg is None: out = 'Test skipped due to test condition.' |
| 202 | else: out = msg |
| 203 | return "Skipping test: %s. %s" % (func.__name__,out) |
| 204 | |
| 205 | # We need to define *two* skippers because Python doesn't allow both |
| 206 | # return with value and yield inside the same function. |
no outgoing calls
no test coverage detected