Skip to content

Commit 359b749

Browse files
committed
Add test for #113
1 parent 4332803 commit 359b749

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/test_future/test_futurize.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,17 @@ def test_encoding_comments_kept_at_top(self):
123123
"""
124124
self.convert_check(before, after)
125125

126+
def test_multiline_future_import(self):
127+
"""
128+
Issue #113: don't crash if a future import has multiple lines
129+
"""
130+
text = """
131+
from __future__ import (
132+
division
133+
)
134+
"""
135+
self.convert(text)
136+
126137
def test_shebang_blank_with_future_division_import(self):
127138
"""
128139
Issue #43: Is shebang line preserved as the first

0 commit comments

Comments
 (0)