Skip to content

Commit

Permalink
wip: invalid raise_from with multi lines / trailing commas
Browse files Browse the repository at this point in the history
  • Loading branch information
asottile committed Sep 25, 2021
1 parent 9c40758 commit 9650c93
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/features/six_test.py
Expand Up @@ -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',
Expand Down

0 comments on commit 9650c93

Please sign in to comment.