MCPcopy Index your code
hub / github.com/RustPython/RustPython / decorator

Function decorator

Lib/unittest/case.py:166–175  ·  view source on GitHub ↗
(test_item)

Source from the content-addressed store, hash-verified

164 Unconditionally skip a test.
165 """
166 def decorator(test_item):
167 if not isinstance(test_item, type):
168 @functools.wraps(test_item)
169 def skip_wrapper(*args, **kwargs):
170 raise SkipTest(reason)
171 test_item = skip_wrapper
172
173 test_item.__unittest_skip__ = True
174 test_item.__unittest_skip_why__ = reason
175 return test_item
176 if isinstance(reason, types.FunctionType):
177 test_item = reason
178 reason = ''

Callers 2

decorate_classMethod · 0.70
skipFunction · 0.70

Calls 1

isinstanceFunction · 0.85

Tested by

no test coverage detected