Skip to content

Commit

Permalink
Add test for pydata#9155
Browse files Browse the repository at this point in the history
I can't get this to fail locally, so adding a test to assess what's going on.

Alos excludes matplotlib from type exclusions
  • Loading branch information
max-sixty committed Jun 24, 2024
1 parent deb2082 commit f4221f0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ module = [
"h5netcdf.*",
"h5py.*",
"iris.*",
"matplotlib.*",
"mpl_toolkits.*",
"nc_time_axis.*",
"numbagg.*",
Expand Down
8 changes: 8 additions & 0 deletions xarray/tests/test_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -3406,3 +3406,11 @@ def test_plot1d_filtered_nulls() -> None:
actual = pc.get_offsets().shape[0]

assert expected == actual

@requires_matplotlib
def test_9155() -> None:
# A test for types from issue #9155

data = xr.DataArray([1, 2, 3], dims=["x"])
fig, ax = plt.subplots(ncols=1, nrows=1)
data.plot(ax=ax)

0 comments on commit f4221f0

Please sign in to comment.