From 201cbf6bc1e9f2a4cdd6ae19b2a42fa10effb0c8 Mon Sep 17 00:00:00 2001 From: th3nn3ss Date: Wed, 24 Aug 2022 01:05:58 +0100 Subject: [PATCH] use Timedelta instead of pd.Timedelta --- pandas/tests/arrays/test_timedeltas.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandas/tests/arrays/test_timedeltas.py b/pandas/tests/arrays/test_timedeltas.py index c180aa00ffa25..4ef5ded066790 100644 --- a/pandas/tests/arrays/test_timedeltas.py +++ b/pandas/tests/arrays/test_timedeltas.py @@ -69,9 +69,9 @@ def test_total_seconds(self, unit, tda): def test_timedelta_array_total_seconds(self): # GH34290 - expected = pd.Timedelta("2 min").total_seconds() + expected = Timedelta("2 min").total_seconds() - result = pd.array([pd.Timedelta("2 min")]).total_seconds()[0] + result = pd.array([Timedelta("2 min")]).total_seconds()[0] assert result == expected @pytest.mark.parametrize(