Handling of star_expr and some async issues.

This commit is contained in:
Dave Halter
2017-07-21 17:23:16 +02:00
parent 82d69ca211
commit 1df06025c2
3 changed files with 37 additions and 2 deletions

View File

@@ -99,6 +99,12 @@ def test_python_exception_matches(code):
('async def bla():\n def x(): await bla()', '3.5'),
('yield from []', '3.5'),
('async def foo(): yield from []', '3.5'),
('async def foo():\n yield x\n return 1', '3.6'),
('async def foo():\n yield x\n return 1', '3.6'),
('*a, *b = 3, 3', '3.3'),
('*a = 3', '3.5'),
('del *a, b', '3.5'),
('async def foo():\n def nofoo():[x async for x in []]', '3.6'),
]
)
def test_python_exception_matches_version(code, version):