MCPcopy Index your code
hub / github.com/pydata/xarray / skip_if_not_engine

Function skip_if_not_engine

xarray/tests/test_backends.py:5513–5517  ·  view source on GitHub ↗
(engine)

Source from the content-addressed store, hash-verified

5511
5512# using pytest.mark.skipif does not work so this a work around
5513def skip_if_not_engine(engine):
5514 if engine == "netcdf4":
5515 pytest.importorskip("netCDF4")
5516 else:
5517 pytest.importorskip(engine)
5518
5519
5520@requires_dask

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…