Skip to content

Commit 49be5b5

Browse files
authored
Fix spurious test error with pandas 2.1 (#1891)
pandas-dev/pandas#55014
1 parent af8dde5 commit 49be5b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pvlib/tests/test_solarposition.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ def test_sun_rise_set_transit_ephem_horizon(golden):
310310
sunrise_delta = datetime.datetime(2016, 1, 3, 7, 17, 11) - \
311311
datetime.datetime(2016, 1, 3, 7, 21, 33)
312312
expected = pd.Series(index=times,
313-
data=sunrise_delta,
313+
data=[sunrise_delta],
314314
name='sunrise').dt.round('min')
315315
assert_series_equal(expected, result_rounded)
316316

0 commit comments

Comments
 (0)