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

Function skipper_func

IPython/external/decorators/_decorators.py:78–83  ·  view source on GitHub ↗

Skipper for normal test functions.

(*args, **kwargs)

Source from the content-addressed store, hash-verified

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."""

Callers

nothing calls this directly

Calls 2

get_msgFunction · 0.70
fFunction · 0.50

Tested by

no test coverage detected