Skip to content

Commit c59cc68

Browse files
committed
added assert_series_equal control and changed date_range call
1 parent f5dab2c commit c59cc68

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pandas/tests/series/methods/test_combine_first.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -103,13 +103,13 @@ def test_combine_first_dt_tz_values(self, tz_naive_fixture):
103103

104104
def test_combine_first_timezone_series_with_empty_series(self):
105105
# GH 41800
106-
time_index = pd.date_range(
106+
time_index = date_range(
107107
datetime(2021, 1, 1, 1),
108108
datetime(2021, 1, 1, 10),
109109
freq="H",
110-
tz="Europe/Rome"
110+
tz="Europe/Rome",
111111
)
112-
s1 = Series(np.random.random(10), index=time_index)
113-
s2 = Series()
112+
s1 = Series(range(10), index=time_index)
113+
s2 = Series(index=time_index)
114114
result = s1.combine_first(s2)
115-
tm.assert_equal(result.values, s1.values)
115+
tm.assert_series_equal(result, s1)

0 commit comments

Comments
 (0)