File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
pandas/tests/indexes/datetimes Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -950,3 +950,10 @@ def test_datetimeindex_constructor_misc(self):
950950 )
951951 assert len (idx1 ) == len (idx2 )
952952 assert idx1 .freq == idx2 .freq
953+
954+
955+ def test_timestamp_constructor_identity ():
956+ # Test for #30543
957+ expected = pd .Timestamp ("2017-01-01T12" )
958+ result = pd .Timestamp (expected )
959+ assert result is expected
Original file line number Diff line number Diff line change @@ -2313,10 +2313,3 @@ def test_nullable_integer_to_datetime():
23132313 tm .assert_series_equal (res , expected )
23142314 # Check that ser isn't mutated
23152315 tm .assert_series_equal (ser , ser_copy )
2316-
2317-
2318- def test_timestamp_constructor_identity ():
2319- # Test for #30543
2320- expected = pd .Timestamp ("2017-01-01T12" )
2321- result = pd .Timestamp (expected )
2322- assert result is expected
You can’t perform that action at this time.
0 commit comments