Skip to content

Commit ab7a95e

Browse files
author
MarcoGorelli
committed
add test
1 parent d50802c commit ab7a95e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pandas/tests/scalar/timestamp/test_timestamp.py

+8
Original file line numberDiff line numberDiff line change
@@ -1082,3 +1082,11 @@ def test_as_unit_non_nano(self):
10821082
== res.nanosecond
10831083
== 0
10841084
)
1085+
1086+
1087+
def test_delimited_date():
1088+
# https://github.com/pandas-dev/pandas/issues/50231
1089+
with tm.assert_produces_warning(None):
1090+
result = Timestamp("13-01-2000")
1091+
expected = Timestamp(2000, 1, 13)
1092+
assert result == expected

0 commit comments

Comments
 (0)