From 31a7376f903041492959bec8db1751cad8f34656 Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Tue, 10 Nov 2020 16:04:51 -0800 Subject: [PATCH] wip: invalid raise_from with multi lines / trailing commas --- tests/six_test.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/six_test.py b/tests/six_test.py index bdcb9803..a800ff44 100644 --- a/tests/six_test.py +++ b/tests/six_test.py @@ -220,6 +220,16 @@ def test_fix_six_noop(s): 'six.raise_from(exc, exc_from)\n', 'raise exc from exc_from\n', ), + pytest.param( + 'six.raise_from(\n' + ' e,\n' + ' f,\n' + ')', + + 'raise e from f', + + id='six raise_from across multiple lines', + ), ( 'six.reraise(tp, exc, tb)\n', 'raise exc.with_traceback(tb)\n',