Skip to content

Commit 438b6ec

Browse files
committed
Mark test_range_necessary_list_calls() as xfail on Py2.6
1 parent 0a80479 commit 438b6ec

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

future/tests/test_futurize.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1026,7 +1026,15 @@ def test_issue_12(self):
10261026
"""
10271027
self.unchanged(code)
10281028

1029+
@expectedFailurePY26
10291030
def test_range_necessary_list_calls(self):
1031+
"""
1032+
On Py2.6 (only), the xrange_with_import fixer somehow seems to cause
1033+
l = range(10)
1034+
to be converted to:
1035+
l = list(list(range(10)))
1036+
with an extra list(...) call.
1037+
"""
10301038
before = """
10311039
l = range(10)
10321040
assert isinstance(l, list)

0 commit comments

Comments
 (0)