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

Function skipper_func

IPython/testing/decorators.py:207–212  ·  view source on GitHub ↗

Skipper for normal test functions.

(*args, **kwargs)

Source from the content-addressed store, hash-verified

205 # We need to define *two* skippers because Python doesn't allow both
206 # return with value and yield inside the same function.
207 def skipper_func(*args, **kwargs):
208 """Skipper for normal test functions."""
209 if skip_val():
210 raise nose.SkipTest(get_msg(f,msg))
211 else:
212 return f(*args, **kwargs)
213
214 def skipper_gen(*args, **kwargs):
215 """Skipper for test generators."""

Callers

nothing calls this directly

Calls 2

get_msgFunction · 0.70
fFunction · 0.50

Tested by

no test coverage detected