Skip to content
Merged
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
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