Don't give syntax errors for parenthesised kwargs <3.8

This commit is contained in:
Batuhan Taskaya
2020-05-23 14:35:36 +03:00
committed by Dave Halter
parent 8bb211fafb
commit a06521d912
2 changed files with 6 additions and 0 deletions

View File

@@ -273,6 +273,9 @@ def test_too_many_levels_of_indentation():
assert not _get_error_list(build_nested('pass', 49, base=base))
assert _get_error_list(build_nested('pass', 50, base=base))
def test_paren_kwarg():
assert _get_error_list("print((sep)=seperator)", version="3.8")
assert not _get_error_list("print((sep)=seperator)", version="3.7")
@pytest.mark.parametrize(
'code', [