Skip to content

Commit 54e7041

Browse files
committed
TST: Fix assertion for TestSetitemNAPeriodDtype::expected
1 parent bcd9649 commit 54e7041

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tests/series/indexing/test_setitem.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1025,7 +1025,7 @@ class TestSetitemNAPeriodDtype(SetitemCastingEquivalents):
10251025
def expected(self, key):
10261026
exp = Series(period_range("2000-01-01", periods=10, freq="D"))
10271027
exp._values.view("i8")[key] = NaT._value
1028-
assert exp[key] is NaT or all(x is NaT for x in exp[key])
1028+
assert exp[key] is NaT or any(x is NaT for x in exp)
10291029
return exp
10301030

10311031
@pytest.fixture

0 commit comments

Comments
 (0)