Skip to content

Commit 57c74de

Browse files
committed
Remove nanprod skips
1 parent 742637a commit 57c74de

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

xarray/tests/test_units.py

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import numpy as np
77
import pandas as pd
88
import pytest
9-
from packaging import version
109

1110
import xarray as xr
1211
from xarray.core import dtypes, duck_array_ops
@@ -1534,13 +1533,6 @@ class TestVariable:
15341533
ids=repr,
15351534
)
15361535
def test_aggregation(self, func, dtype):
1537-
if (
1538-
func.name == "prod"
1539-
and dtype.kind == "f"
1540-
and version.parse(pint.__version__) < version.parse("0.19")
1541-
):
1542-
pytest.xfail(reason="nanprod is not by older `pint` versions")
1543-
15441536
array = np.linspace(0, 1, 10).astype(dtype) * (
15451537
unit_registry.m if func.name != "cumprod" else unit_registry.dimensionless
15461538
)
@@ -2395,13 +2387,6 @@ def test_repr(self, func, variant, dtype):
23952387
ids=repr,
23962388
)
23972389
def test_aggregation(self, func, dtype):
2398-
if (
2399-
func.name == "prod"
2400-
and dtype.kind == "f"
2401-
and version.parse(pint.__version__) < version.parse("0.19")
2402-
):
2403-
pytest.xfail(reason="nanprod is not by older `pint` versions")
2404-
24052390
array = np.arange(10).astype(dtype) * (
24062391
unit_registry.m if func.name != "cumprod" else unit_registry.dimensionless
24072392
)
@@ -4093,13 +4078,6 @@ def test_repr(self, func, variant, dtype):
40934078
ids=repr,
40944079
)
40954080
def test_aggregation(self, func, dtype):
4096-
if (
4097-
func.name == "prod"
4098-
and dtype.kind == "f"
4099-
and version.parse(pint.__version__) < version.parse("0.19")
4100-
):
4101-
pytest.xfail(reason="nanprod is not by older `pint` versions")
4102-
41034081
unit_a, unit_b = (
41044082
(unit_registry.Pa, unit_registry.degK)
41054083
if func.name != "cumprod"

0 commit comments

Comments
 (0)