Skip to content

Commit

Permalink
Add test for #113
Browse files Browse the repository at this point in the history
  • Loading branch information
flaviut committed Sep 10, 2018
1 parent 4332803 commit 359b749
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/test_future/test_futurize.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,17 @@ def test_encoding_comments_kept_at_top(self):
"""
self.convert_check(before, after)

def test_multiline_future_import(self):
"""
Issue #113: don't crash if a future import has multiple lines
"""
text = """
from __future__ import (
division
)
"""
self.convert(text)

def test_shebang_blank_with_future_division_import(self):
"""
Issue #43: Is shebang line preserved as the first
Expand Down

0 comments on commit 359b749

Please sign in to comment.