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

Function skipper_gen

IPython/external/decorators/_decorators.py:85–91  ·  view source on GitHub ↗

Skipper for test generators.

(*args, **kwargs)

Source from the content-addressed store, hash-verified

83 return f(*args, **kwargs)
84
85 def skipper_gen(*args, **kwargs):
86 """Skipper for test generators."""
87 if skip_val():
88 raise nose.SkipTest(get_msg(f,msg))
89 else:
90 for x in f(*args, **kwargs):
91 yield x
92
93 # Choose the right skipper to use when building the actual decorator.
94 if nose.util.isgenerator(f):

Callers

nothing calls this directly

Calls 2

get_msgFunction · 0.70
fFunction · 0.50

Tested by

no test coverage detected