Skip to content

Commit 665d932

Browse files
committed
TST: split up test_concat.py pandas-dev#37243
* small changes in test_datetimes.py
1 parent faa0e0b commit 665d932

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

pandas/tests/reshape/concat/test_datetimes.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
Timestamp,
1616
concat,
1717
date_range,
18+
to_timedelta,
1819
)
1920
import pandas._testing as tm
2021

@@ -515,12 +516,10 @@ def test_concat_period_other_series(self):
515516

516517

517518
def test_concat_timedelta64_block():
518-
from pandas import to_timedelta
519-
520519
rng = to_timedelta(np.arange(10), unit="s")
521520

522521
df = DataFrame({"time": rng})
523522

524523
result = concat([df, df])
525-
assert (result.iloc[:10]["time"] == rng).all()
526-
assert (result.iloc[10:]["time"] == rng).all()
524+
tm.assert_frame_equal(result.iloc[:10], df)
525+
tm.assert_frame_equal(result.iloc[10:], df)

0 commit comments

Comments
 (0)