Skip to content

Commit 512c611

Browse files
committed
catch warning
1 parent 9ba9c9e commit 512c611

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/tests/frame/test_reductions.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1704,6 +1704,7 @@ def test_groupy_regular_arithmetic_equivalent(meth):
17041704
def test_frame_mixed_numeric_object_with_timestamp(ts_value):
17051705
# GH 13912
17061706
df = DataFrame({"a": [1], "b": [1.1], "c": ["foo"], "d": [ts_value]})
1707-
result = df.sum()
1707+
with tm.assert_produces_warning(FutureWarning, match="Dropping of nuisance"):
1708+
result = df.sum()
17081709
expected = Series([1, 1.1, "foo"], index=list("abc"))
17091710
tm.assert_series_equal(result, expected)

0 commit comments

Comments
 (0)