Skip to content

Commit ae2376a

Browse files
committed
Remove redundant condition
1 parent 54e7041 commit ae2376a

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 any(x is NaT for x in exp)
1028+
assert exp[key] is NaT
10291029
return exp
10301030

10311031
@pytest.fixture

0 commit comments

Comments
 (0)