Skip to content

Commit 8b34896

Browse files
committed
Fix test for parenthesised future imports
This now fails if the fix in the previous commit is reverted
1 parent 6fbd8c3 commit 8b34896

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tests/test_future_behaviour.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,12 @@ def test_problematic_file():
112112
""")
113113

114114
FUTURE_IMPORT_PAREN = ("""\
115-
from __future__ import (print_function, division)
116-
print("abc")
115+
from __future__ import (absolute_import, division, print_function)
116+
unicode("abc")
117117
""", """\
118-
from __future__ import (print_function, division)
119-
print("abc")
118+
from __future__ import (absolute_import, division, print_function)
119+
import six
120+
six.text_type("abc")
120121
"""
121122
)
122123

0 commit comments

Comments
 (0)