From 9650c932838484d9289fb3fa564a6ea06e5f2088 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/features/six_test.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/features/six_test.py b/tests/features/six_test.py index 71d41c8b..778e2d31 100644 --- a/tests/features/six_test.py +++ b/tests/features/six_test.py @@ -126,6 +126,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',