Skip to content

Commit

Permalink
Remove nanprod skips
Browse files Browse the repository at this point in the history
  • Loading branch information
dcherian committed Nov 12, 2023
1 parent 742637a commit 57c74de
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions xarray/tests/test_units.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import numpy as np
import pandas as pd
import pytest
from packaging import version

import xarray as xr
from xarray.core import dtypes, duck_array_ops
Expand Down Expand Up @@ -1534,13 +1533,6 @@ class TestVariable:
ids=repr,
)
def test_aggregation(self, func, dtype):
if (
func.name == "prod"
and dtype.kind == "f"
and version.parse(pint.__version__) < version.parse("0.19")
):
pytest.xfail(reason="nanprod is not by older `pint` versions")

array = np.linspace(0, 1, 10).astype(dtype) * (
unit_registry.m if func.name != "cumprod" else unit_registry.dimensionless
)
Expand Down Expand Up @@ -2395,13 +2387,6 @@ def test_repr(self, func, variant, dtype):
ids=repr,
)
def test_aggregation(self, func, dtype):
if (
func.name == "prod"
and dtype.kind == "f"
and version.parse(pint.__version__) < version.parse("0.19")
):
pytest.xfail(reason="nanprod is not by older `pint` versions")

array = np.arange(10).astype(dtype) * (
unit_registry.m if func.name != "cumprod" else unit_registry.dimensionless
)
Expand Down Expand Up @@ -4093,13 +4078,6 @@ def test_repr(self, func, variant, dtype):
ids=repr,
)
def test_aggregation(self, func, dtype):
if (
func.name == "prod"
and dtype.kind == "f"
and version.parse(pint.__version__) < version.parse("0.19")
):
pytest.xfail(reason="nanprod is not by older `pint` versions")

unit_a, unit_b = (
(unit_registry.Pa, unit_registry.degK)
if func.name != "cumprod"
Expand Down

0 comments on commit 57c74de

Please sign in to comment.