Skip to content

Commit 87f9823

Browse files
committed
CLN: move test to test_constructors.py
1 parent 87fb09e commit 87f9823

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

pandas/tests/indexes/datetimes/test_constructors.py

+7
Original file line numberDiff line numberDiff 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

pandas/tests/indexes/datetimes/test_tools.py

-7
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)