Skip to content

Commit 0d81824

Browse files
committed
BUG: Remove special-casing for Python date objects in DatetimeIndex
1 parent 0c7eb2d commit 0d81824

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/tests/indexes/datetimes/test_indexing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ def test_get_indexer(self):
567567
[
568568
(
569569
[date(2020, 1, 1), Timestamp("2020-01-02")],
570-
np.array([-1, -1], dtype=np.intp),
570+
np.array([-1, 1], dtype=np.intp),
571571
),
572572
(
573573
[Timestamp("2020-01-01"), Timestamp(date(2020, 1, 2))],
@@ -584,7 +584,7 @@ def test_get_indexer_mixed_dtypes(self, target, expected):
584584
@pytest.mark.parametrize(
585585
"target, positions",
586586
[
587-
([date(9999, 1, 1), Timestamp("2020-01-01")], [-1, -1]),
587+
([date(9999, 1, 1), Timestamp("2020-01-01")], [-1, 0]),
588588
([Timestamp("2020-01-01"), date(9999, 1, 1)], [0, -1]),
589589
([date(9999, 1, 1), date(9999, 1, 1)], [-1, -1]),
590590
],

0 commit comments

Comments
 (0)