From 8b56f0a05600ce8975dbcc5c8a722fd35ad37608 Mon Sep 17 00:00:00 2001 From: Luke Manley Date: Sat, 9 Dec 2023 08:36:11 -0500 Subject: [PATCH] fix test --- pandas/tests/series/test_arithmetic.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pandas/tests/series/test_arithmetic.py b/pandas/tests/series/test_arithmetic.py index 75237be212030..b40e2e99dae2e 100644 --- a/pandas/tests/series/test_arithmetic.py +++ b/pandas/tests/series/test_arithmetic.py @@ -754,6 +754,9 @@ def test_series_add_tz_mismatch_converts_to_utc(self): uts2 = ser2.tz_convert("utc") expected = uts1 + uts2 + # sort since input indexes are not equal + expected = expected.sort_index() + assert result.index.tz is timezone.utc tm.assert_series_equal(result, expected)