Skip to content

Commit cf4119d

Browse files
committed
added couple more test cases
1 parent a0f9e74 commit cf4119d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pandas/tests/tools/test_to_datetime.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,13 +387,15 @@ def test_to_datetime_parse_timezone_keeps_name(self):
387387
"data, format, expected",
388388
[
389389
([pd.NA], "%Y%m%d%H%M%S", DatetimeIndex(["NaT"])),
390+
([pd.NA], None, DatetimeIndex(["NaT"])),
390391
(
391392
[pd.NA, "20210202202020"],
392393
"%Y%m%d%H%M%S",
393394
DatetimeIndex(["NaT", "2021-02-02 20:20:20"]),
394395
),
395396
(["201010", pd.NA], "%y%m%d", DatetimeIndex(["2020-10-10", "NaT"])),
396397
(["201010", pd.NA], "%d%m%y", DatetimeIndex(["2010-10-20", "NaT"])),
398+
(["201010", pd.NA], None, DatetimeIndex(["2010-10-20", "NaT"])),
397399
],
398400
)
399401
def test_to_datetime_with_pdNA(self, data, format, expected):

0 commit comments

Comments
 (0)