Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip broken tests on Python 3.11 and Windows #7972

Merged
merged 2 commits into from
Jul 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
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