Skip to content

Commit 8ad0b83

Browse files
max-sixtykeewis
andauthored
Filter out doctest warning (#8539)
* Filter out doctest warning Trying to fix #8537. Not sure it'll work and can't test locally so seeing if it passes CI * try using the CLI to ignore the warning --------- Co-authored-by: Justus Magin <keewis@posteo.de>
1 parent 967ef91 commit 8ad0b83

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/ci-additional.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,11 @@ jobs:
7676
# Raise an error if there are warnings in the doctests, with `-Werror`.
7777
# This is a trial; if it presents an problem, feel free to remove.
7878
# See https://github.com/pydata/xarray/issues/7164 for more info.
79-
python -m pytest --doctest-modules xarray --ignore xarray/tests -Werror
79+
80+
# ignores:
81+
# 1. h5py: see https://github.com/pydata/xarray/issues/8537
82+
python -m pytest --doctest-modules xarray --ignore xarray/tests -Werror \
83+
-W "ignore:h5py is running against HDF5 1.14.3:UserWarning"
8084
8185
mypy:
8286
name: Mypy

0 commit comments

Comments
 (0)