Skip to content

Commit

Permalink
Avoid dictionary comprehension on 2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
myint committed Jan 10, 2014
1 parent 1b203c0 commit 98b636a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/test_autopep8.py
Original file line number Diff line number Diff line change
Expand Up @@ -3062,6 +3062,8 @@ def f(self):
with autopep8_context(line, options=['-aa']) as result:
self.assertEqual(fixed, result)

@unittest.skipIf(sys.version_info <= (2, 6),
'Python 2.6 does not support dictionary comprehensions')
def test_e501_experimental_with_complex_reformat(self):
line = """\
bork(111, 111, 111, 111, 222, 222, 222, { 'foo': 222, 'qux': 222 }, ((['hello', 'world'], ['yo', 'stella', "how's", 'it'], ['going']), {str(i): i for i in range(10)}, {'bork':((x, x**x) for x in range(10))}), 222, 222, 222, 222, 333, 333, 333, 333)
Expand Down

0 comments on commit 98b636a

Please sign in to comment.