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

Function skipUnless

Lib/unittest/case.py:190–196  ·  view source on GitHub ↗

Skip a test unless the condition is true.

(condition, reason)

Source from the content-addressed store, hash-verified

188 return _id
189
190def skipUnless(condition, reason):
191 """
192 Skip a test unless the condition is true.
193 """
194 if not condition:
195 return skip(reason)
196 return _id
197
198def expectedFailure(test_item):
199 test_item.__unittest_expecting_failure__ = True

Callers 1

test_poplib.pyFile · 0.90

Calls 1

skipFunction · 0.85

Tested by

no test coverage detected