We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77c0f81 commit 6704d06Copy full SHA for 6704d06
pvlib/tests/test_tools.py
@@ -273,8 +273,11 @@ def test_normalize_max2one(data_in, expected):
273
)
274
def test_localize_to_utc(input, expected):
275
got = tools.localize_to_utc(**input)
276
- if isinstance(got, (pd.Series, pd.DataFrame)):
277
- assert got.equals(expected)
+
+ if isinstance(got, pd.Series):
278
+ pd.testing.assert_series_equal(got, expected)
279
+ elif isinstance(got, pd.DataFrame):
280
+ pd.testing.assert_frame_equal(got, expected)
281
else:
282
assert got == expected
283
0 commit comments