diff --git a/pandas/tests/reshape/concat/test_concat.py b/pandas/tests/reshape/concat/test_concat.py index 57b0462710bc5..5fe80e5d9ed22 100644 --- a/pandas/tests/reshape/concat/test_concat.py +++ b/pandas/tests/reshape/concat/test_concat.py @@ -650,7 +650,7 @@ def test_concat_posargs_deprecation(all_parsers): "except for the argument 'objs' will be keyword-only" ) with tm.assert_produces_warning(FutureWarning, match=msg): - concat([df, df2], " ") + result = concat([df, df2], " ") expected = DataFrame([[1,2,3],[4,5,6]], index=["a","b"]) tm.assert_frame_equal(result, expected)