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 Nov 11, 2020
1 parent b1773d9 commit 31a7376
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/six_test.py
Expand Up @@ -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',
Expand Down

0 comments on commit 31a7376

Please sign in to comment.