Skip to content

Commit 5379298

Browse files
committed
Fix test
1 parent ac9e3c1 commit 5379298

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/tests/frame/methods/test_reindex.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1216,8 +1216,8 @@ def test_reindex_datetimelike_to_object(self, dtype):
12161216
)
12171217
assert (res.dtypes[[0, 1]] == object).all()
12181218
assert res.iloc[0, 0] is pd.NaT
1219-
assert res.iloc[-1, 0] is fv
1220-
assert res.iloc[-1, 1] is fv
1219+
assert type(res.iloc[-1, 0]) is type(fv) and isna(res.iloc[-1, 0])
1220+
assert type(res.iloc[-1, 1]) is type(fv) and isna(res.iloc[-1, 1])
12211221
tm.assert_frame_equal(res, expected)
12221222

12231223
@pytest.mark.parametrize(

0 commit comments

Comments
 (0)