Skip to content

Commit 720d46c

Browse files
Update pandas/tests/series/indexing/test_datetime.py
Co-authored-by: Richard Shadrach <[email protected]>
1 parent ae20357 commit 720d46c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pandas/tests/series/indexing/test_datetime.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -507,8 +507,7 @@ def test_dt_date_dtype_all_nat_is_object():
507507
def test_dt_date_all_nat_le_date():
508508
# All-NaT Series should not raise error when compared to a datetime.date
509509
# GH#61188
510-
s = Series([pd.NaT, pd.NaT])
511-
s = pd.to_datetime(s)
510+
s = Series([pd.NaT, pd.NaT], dtype="datetime64[s]")
512511
result = s.dt.date <= datetime.now().date()
513512
expected = Series([False, False])
514513
tm.assert_series_equal(result, expected)

0 commit comments

Comments
 (0)