[3.12] gh-113703: Correctly identify incomplete f-strings in the codeop module (GH-113709) (#113733)

(cherry picked from commit 3003fbbf00)
This commit is contained in:
Pablo Galindo Salgado 2024-01-05 13:23:40 +00:00 committed by GitHub
parent 8435fbfe4e
commit 0affc3d0f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 3 deletions

View file

@ -223,6 +223,9 @@ class CodeopTests(unittest.TestCase):
ai("(x for x in")
ai("(x for x in (")
ai('a = f"""')
ai('a = \\')
def test_invalid(self):
ai = self.assertInvalid
ai("a b")