Skip to content

Commit af272e1

Browse files
author
MarcoGorelli
committed
use fromisoformat
1 parent e665ada commit af272e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tests/tools/test_to_datetime.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ def test_to_datetime_mixed_datetime_and_string(self):
508508
)
509509
@pytest.mark.parametrize(
510510
"constructor",
511-
[Timestamp, lambda x: Timestamp(x).to_pydatetime()],
511+
[Timestamp, datetime.fromisoformat],
512512
)
513513
def test_to_datetime_mixed_datetime_and_string_with_format(
514514
self, fmt, utc, input, expected, constructor

0 commit comments

Comments
 (0)