diff --git a/pandas/tests/reductions/test_reductions.py b/pandas/tests/reductions/test_reductions.py index 20749c7ed90e8..efecd43625eed 100644 --- a/pandas/tests/reductions/test_reductions.py +++ b/pandas/tests/reductions/test_reductions.py @@ -1259,6 +1259,12 @@ def test_sum_uint64(self): expected = np.uint64(10000000000000000000) tm.assert_almost_equal(result, expected) + def test_signedness_preserved_after_sum(self): + # GH 37491 + ser = Series([1, 2, 3, 4]) + + assert ser.astype("uint8").sum().dtype == "uint64" + class TestDatetime64SeriesReductions: # Note: the name TestDatetime64SeriesReductions indicates these tests