Add python3.4/3.3 issue 'can use starred expression only as assignment target'.

This commit is contained in:
Dave Halter
2017-08-06 01:38:05 +02:00
parent 97525958b6
commit f4b51d91ee
3 changed files with 49 additions and 17 deletions

View File

@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
import sys
from textwrap import dedent
@@ -283,3 +284,11 @@ else:
'async def foo():\n yield x\n return 1',
'async def foo():\n yield x\n return 1',
]
if sys.version_info[:2] <= (3, 4):
# Python > 3.4 this is valid code.
FAILING_EXAMPLES += [
'a = *[1], 2',
'(*[1], 2)',
]