Skip to content

Commit

Permalink
Skip broken tests on python 3.11 and windows (#7972)
Browse files Browse the repository at this point in the history
Should be undone whenever root cause is fixed, #7971.
  • Loading branch information
Illviljan authored Jul 10, 2023
1 parent 159f919 commit e7b433b
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions xarray/tests/test_units.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import functools
import operator
import sys

import numpy as np
import pandas as pd
Expand Down Expand Up @@ -1508,6 +1509,10 @@ def test_dot_dataarray(dtype):


class TestVariable:
@pytest.mark.skipif(
(sys.version_info >= (3, 11)) and sys.platform.startswith("win"),
reason="fails for some reason on win and 3.11, GH7971",
)
@pytest.mark.parametrize(
"func",
(
Expand Down Expand Up @@ -2339,6 +2344,10 @@ def test_repr(self, func, variant, dtype):
# warnings or errors, but does not check the result
func(data_array)

@pytest.mark.skipif(
(sys.version_info >= (3, 11)) and sys.platform.startswith("win"),
reason="fails for some reason on win and 3.11, GH7971",
)
@pytest.mark.parametrize(
"func",
(
Expand Down Expand Up @@ -2416,6 +2425,10 @@ def test_aggregation(self, func, dtype):
assert_units_equal(expected, actual)
assert_allclose(expected, actual)

@pytest.mark.skipif(
(sys.version_info >= (3, 11)) and sys.platform.startswith("win"),
reason="fails for some reason on win and 3.11, GH7971",
)
@pytest.mark.parametrize(
"func",
(
Expand Down Expand Up @@ -4069,6 +4082,10 @@ def test_repr(self, func, variant, dtype):
# warnings or errors, but does not check the result
func(ds)

@pytest.mark.skipif(
(sys.version_info >= (3, 11)) and sys.platform.startswith("win"),
reason="fails for some reason on win and 3.11, GH7971",
)
@pytest.mark.parametrize(
"func",
(
Expand Down

0 comments on commit e7b433b

Please sign in to comment.