Skip to content

Commit 56b46dc

Browse files
committed
Revert botched encoding in a test (QuLogic's comment on commit 91b800d)
1 parent 7ee8efe commit 56b46dc

File tree

1 file changed

+2
-17
lines changed

1 file changed

+2
-17
lines changed

tests/test_future/test_futurize.py

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -116,22 +116,7 @@ def test_encoding_comments_kept_at_top(self):
116116
from __future__ import print_function
117117
print('Hello')
118118
"""
119-
self.convert_check(before, after, ignore_imports=False)
120-
121-
# Issue #121. This fails as of v0.14.1:
122-
before = u"""
123-
# -*- coding: utf-8 -*-
124-
# Author: etc. with some unicode ¿.
125-
1 / 2
126-
"""
127-
after = u"""
128-
# -*- coding: utf-8 -*-
129-
# Author: etc. with some unicode ¿.
130-
from __future__ import division
131-
from past.utils import old_div
132-
old_div(1, 2)
133-
"""
134-
self.convert_check(before, after, ignore_imports=False)
119+
self.convert_check(before, after)
135120

136121
def test_shebang_blank_with_future_division_import(self):
137122
"""
@@ -462,7 +447,7 @@ def test_source_coding_utf8(self):
462447
"""
463448
code = """
464449
# -*- coding: utf-8 -*-
465-
icons = [u"◐", u"◓", u"◑", u"◒"]
450+
icons = [u"", u"", u"", u""]
466451
"""
467452
self.unchanged(code)
468453

0 commit comments

Comments
 (0)