Fix: End detection for strings was mostly wrong, fixes #51

This commit is contained in:
Dave Halter
2019-01-23 10:11:41 +01:00
parent ef56debb78
commit 60e4591837
4 changed files with 48 additions and 39 deletions

View File

@@ -262,6 +262,7 @@ def test_too_many_levels_of_indentation():
r'f"\\\""',
r'fr"\""',
r'fr"\\\""',
r"print(f'Some {x:.2f} and some {y}')",
]
)
def test_valid_fstrings(code):