File tree 2 files changed +7
-7
lines changed
pandas/tests/indexes/datetimes
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):
950
950
)
951
951
assert len (idx1 ) == len (idx2 )
952
952
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():
2313
2313
tm .assert_series_equal (res , expected )
2314
2314
# Check that ser isn't mutated
2315
2315
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