Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ install:
- python xarray/util/print_versions.py

script:
- python -OO -c "import xarray"
# TODO: restore this check once the upstream pandas issue is fixed:
# https://github.com/pandas-dev/pandas/issues/21071
# - python -OO -c "import xarray"
- if [[ "$CONDA_ENV" == "docs" ]]; then
conda install -c conda-forge sphinx sphinx_rtd_theme sphinx-gallery numpydoc;
sphinx-build -n -j auto -b html -d _build/doctrees doc _build/html;
Expand Down
4 changes: 3 additions & 1 deletion xarray/tests/test_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -1848,7 +1848,9 @@ def test_drop_index_labels(self):
expected = data.isel(x=slice(0, 0))
assert_identical(expected, actual)

with pytest.raises(ValueError):
# This exception raised by pandas changed from ValueError -> KeyError
# in pandas 0.23.
with pytest.raises((ValueError, KeyError)):
# not contained in axis
data.drop(['c'], dim='x')

Expand Down