From 6e670df984f9c5955f8c57f9816ad6df08c0f195 Mon Sep 17 00:00:00 2001 From: Illviljan <14371165+Illviljan@users.noreply.github.com> Date: Mon, 10 Jul 2023 19:54:34 +0200 Subject: [PATCH] Skip broken tests on python 3.11 and windows --- xarray/tests/test_units.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/xarray/tests/test_units.py b/xarray/tests/test_units.py index ad9da0fad33..addd7587544 100644 --- a/xarray/tests/test_units.py +++ b/xarray/tests/test_units.py @@ -2,6 +2,7 @@ import functools import operator +import sys import numpy as np import pandas as pd @@ -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", ( @@ -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", ( @@ -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", ( @@ -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", (