Skip to content

Commit

Permalink
Conditionally skip testing the Gridded data user guide (#1383)
Browse files Browse the repository at this point in the history
  • Loading branch information
maximlt committed Jul 30, 2024
1 parent feffee5 commit 8bb9391
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion doc/conftest.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
import dask
from importlib.util import find_spec

import dask

from packaging.version import Version
from bokeh.io.webdriver import webdriver_control


collect_ignore_glob = [
'user_guide/Streaming.ipynb',
]
Expand Down Expand Up @@ -45,3 +49,19 @@
# From Dask 2024.3.0 they now use `dask_expr` by default
# https://github.com/dask/dask/issues/10995
dask.config.set({'dataframe.query-planning': False})


# https://github.com/pydata/xarray/pull/9182
try:
import xarray as xr
except ImportError:
pass
else:
import numpy as np

if Version(np.__version__) >= Version('2.0.0') and Version(xr.__version__) <= Version(
'2024.6.0'
):
collect_ignore_glob += [
'user_guide/Gridded_Data.ipynb',
]

0 comments on commit 8bb9391

Please sign in to comment.