MCPcopy Create free account
hub / github.com/ipython/ipython / get_msg

Function get_msg

IPython/external/decorators/_decorators.py:67–74  ·  view source on GitHub ↗

Skip message with information about function being skipped.

(func,msg=None)

Source from the content-addressed store, hash-verified

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.

Callers 2

skipper_funcFunction · 0.70
skipper_genFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected