mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
gh-113703: Correctly identify incomplete f-strings in the codeop module (#113709)
This commit is contained in:
parent
0ae60b66de
commit
3003fbbf00
3 changed files with 11 additions and 2 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue