Most fstrings issues should be fixed now.

This commit is contained in:
Dave Halter
2017-08-26 19:15:09 +02:00
parent 5b7a01ba62
commit 66606403c7
9 changed files with 72 additions and 21 deletions

View File

@@ -237,3 +237,12 @@ def test_too_many_levels_of_indentation():
base = 'def x():\n if x:\n'
assert not _get_error_list(build_nested('pass', 49, base=base))
assert _get_error_list(build_nested('pass', 50, base=base))
@pytest.mark.parametrize(
'code', [
"f'{*args,}'",
]
)
def test_valid_fstrings(code):
assert not _get_error_list(code, version='3.6')