MCPcopy Index your code
hub / github.com/ipython/ipython / onlyif

Function onlyif

IPython/testing/decorators.py:66–69  ·  view source on GitHub ↗

The reverse from skipif, see skipif for details.

(condition: bool, msg: str)

Source from the content-addressed store, hash-verified

64
65
66def onlyif(condition: bool, msg: str) -> MarkDecorator:
67 """The reverse from skipif, see skipif for details."""
68
69 return skipif(not condition, msg)
70
71
72# -----------------------------------------------------------------------------

Callers 1

decorators.pyFile · 0.85

Calls 1

skipifFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…