Skip to content

Commit b85f5e8

Browse files
committed
Remove NaT assume
1 parent e5333fa commit b85f5e8

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

properties/test_index_manipulation.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
pytest.importorskip("hypothesis")
1010

1111
import hypothesis.strategies as st
12-
from hypothesis import assume, note, settings
12+
from hypothesis import note, settings
1313
from hypothesis.stateful import (
1414
RuleBasedStateMachine,
1515
invariant,
@@ -59,9 +59,6 @@ def __init__(self):
5959
)
6060
)
6161
def add_dim_coord(self, var):
62-
# https://github.com/HypothesisWorks/hypothesis/issues/3943
63-
assume(np.all(~np.isnat(var.data)) if var.dtype.kind in ["mM"] else True)
64-
6562
(name,) = var.dims
6663
note(f"adding dimension coordinate {name}")
6764
# dim coord
@@ -73,9 +70,6 @@ def add_dim_coord(self, var):
7370

7471
@rule(var=xrst.index_variables(dims=DIM_NAME))
7572
def assign_coords(self, var):
76-
# https://github.com/HypothesisWorks/hypothesis/issues/3943
77-
assume(np.all(~np.isnat(var.data)) if var.dtype.kind in ["mM"] else True)
78-
7973
(name,) = var.dims
8074
note(f"assign_coords: {name}")
8175
self.dataset = self.dataset.assign_coords({name: var})

0 commit comments

Comments
 (0)