Skip to content

Commit ae1305f

Browse files
committed
xfail windows matplotlib xdist tests
failures in pydata#10726 + `main`
1 parent ba2e831 commit ae1305f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

xarray/tests/test_plot.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
import contextlib
44
import inspect
55
import math
6+
import os
7+
import sys
68
from collections.abc import Callable, Generator, Hashable
79
from copy import copy
810
from datetime import date, timedelta
@@ -12,6 +14,14 @@
1214
import pandas as pd
1315
import pytest
1416

17+
# Skip this entire module on Windows when using pytest-xdist
18+
# due to worker crashes with matplotlib FacetGrid operations
19+
pytestmark = pytest.mark.xfail(
20+
sys.platform == "win32" and "PYTEST_XDIST_WORKER" in os.environ,
21+
reason="matplotlib plotting tests cause xdist worker crashes on Windows",
22+
strict=False, # Don't fail if tests pass
23+
)
24+
1525
import xarray as xr
1626
import xarray.plot as xplt
1727
from xarray import DataArray, Dataset

0 commit comments

Comments
 (0)