From 43a079fbc560cdb717d792ab1fcd6f8d92145ad2 Mon Sep 17 00:00:00 2001 From: Richard Shadrach Date: Sat, 13 Aug 2022 14:39:01 -0400 Subject: [PATCH] TST: Check dtype in test_resample_empty_dataframe --- pandas/tests/resample/test_base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandas/tests/resample/test_base.py b/pandas/tests/resample/test_base.py index 1a25749808820..403eeb8db73f9 100644 --- a/pandas/tests/resample/test_base.py +++ b/pandas/tests/resample/test_base.py @@ -169,13 +169,13 @@ def test_resample_empty_dataframe(empty_frame_dti, freq, resample_method): expected = df.copy() else: # GH14962 - expected = Series([], dtype=object) + expected = Series([], dtype=int) expected.index = _asfreq_compat(df.index, freq) tm.assert_index_equal(result.index, expected.index) assert result.index.freq == expected.index.freq - tm.assert_almost_equal(result, expected, check_dtype=False) + tm.assert_almost_equal(result, expected) # test size for GH13212 (currently stays as df)