We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bcd9649 commit 54e7041Copy full SHA for 54e7041
pandas/tests/series/indexing/test_setitem.py
@@ -1025,7 +1025,7 @@ class TestSetitemNAPeriodDtype(SetitemCastingEquivalents):
1025
def expected(self, key):
1026
exp = Series(period_range("2000-01-01", periods=10, freq="D"))
1027
exp._values.view("i8")[key] = NaT._value
1028
- assert exp[key] is NaT or all(x is NaT for x in exp[key])
+ assert exp[key] is NaT or any(x is NaT for x in exp)
1029
return exp
1030
1031
@pytest.fixture
0 commit comments