Skip to content

Commit 7371adc

Browse files
committed
BUG: Remove special-casing for Python date objects in DatetimeIndex
1 parent dd0278c commit 7371adc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tests/frame/indexing/test_indexing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1890,7 +1890,7 @@ def test_datetime_indexer_consistency_pyarrow_date32():
18901890

18911891
# Make sure we don't treat Arrow date as timestamp
18921892
dtype = ser.dtype.pyarrow_dtype
1893-
assert not (dtype.kind == "M" and not pa.types.is_date(dtype))
1893+
assert not (pa.types.is_timestamp(dtype) and not pa.types.is_date(dtype))
18941894

18951895
with pytest.raises(KeyError):
18961896
dti.get_loc(ser[0])

0 commit comments

Comments
 (0)