Skip to content

Commit e7b433b

Browse files
authored
Skip broken tests on python 3.11 and windows (#7972)
Should be undone whenever root cause is fixed, #7971.
1 parent 159f919 commit e7b433b

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

xarray/tests/test_units.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import functools
44
import operator
5+
import sys
56

67
import numpy as np
78
import pandas as pd
@@ -1508,6 +1509,10 @@ def test_dot_dataarray(dtype):
15081509

15091510

15101511
class TestVariable:
1512+
@pytest.mark.skipif(
1513+
(sys.version_info >= (3, 11)) and sys.platform.startswith("win"),
1514+
reason="fails for some reason on win and 3.11, GH7971",
1515+
)
15111516
@pytest.mark.parametrize(
15121517
"func",
15131518
(
@@ -2339,6 +2344,10 @@ def test_repr(self, func, variant, dtype):
23392344
# warnings or errors, but does not check the result
23402345
func(data_array)
23412346

2347+
@pytest.mark.skipif(
2348+
(sys.version_info >= (3, 11)) and sys.platform.startswith("win"),
2349+
reason="fails for some reason on win and 3.11, GH7971",
2350+
)
23422351
@pytest.mark.parametrize(
23432352
"func",
23442353
(
@@ -2416,6 +2425,10 @@ def test_aggregation(self, func, dtype):
24162425
assert_units_equal(expected, actual)
24172426
assert_allclose(expected, actual)
24182427

2428+
@pytest.mark.skipif(
2429+
(sys.version_info >= (3, 11)) and sys.platform.startswith("win"),
2430+
reason="fails for some reason on win and 3.11, GH7971",
2431+
)
24192432
@pytest.mark.parametrize(
24202433
"func",
24212434
(
@@ -4069,6 +4082,10 @@ def test_repr(self, func, variant, dtype):
40694082
# warnings or errors, but does not check the result
40704083
func(ds)
40714084

4085+
@pytest.mark.skipif(
4086+
(sys.version_info >= (3, 11)) and sys.platform.startswith("win"),
4087+
reason="fails for some reason on win and 3.11, GH7971",
4088+
)
40724089
@pytest.mark.parametrize(
40734090
"func",
40744091
(

0 commit comments

Comments
 (0)