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

Function get_msg

IPython/testing/decorators.py:199–203  ·  view source on GitHub ↗

Skip message with information about function being skipped.

(func,msg=None)

Source from the content-addressed store, hash-verified

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.

Callers 2

skipper_funcFunction · 0.70
skipper_genFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected