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

Function skipper_gen

IPython/testing/decorators.py:214–220  ·  view source on GitHub ↗

Skipper for test generators.

(*args, **kwargs)

Source from the content-addressed store, hash-verified

212 return f(*args, **kwargs)
213
214 def skipper_gen(*args, **kwargs):
215 """Skipper for test generators."""
216 if skip_val():
217 raise nose.SkipTest(get_msg(f,msg))
218 else:
219 for x in f(*args, **kwargs):
220 yield x
221
222 # Choose the right skipper to use when building the actual generator.
223 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