diff options
author | Pablo Galindo Salgado <Pablogsal@gmail.com> | 2024-01-05 12:16:46 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-05 12:16:46 +0000 |
commit | 3003fbbf00422bce6e327646063e97470afa9091 (patch) | |
tree | 81f2422f39b657209411d619d4f7f4874e162ec8 /Lib/test/test_codeop.py | |
parent | 0ae60b66dea5140382190463a676bafe706608f5 (diff) | |
download | cpython-3003fbbf00422bce6e327646063e97470afa9091.tar.gz cpython-3003fbbf00422bce6e327646063e97470afa9091.zip |
gh-113703: Correctly identify incomplete f-strings in the codeop module (#113709)
Diffstat (limited to 'Lib/test/test_codeop.py')
-rw-r--r-- | Lib/test/test_codeop.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_codeop.py b/Lib/test/test_codeop.py index 2abb6c6d935..787bd1b6a79 100644 --- a/Lib/test/test_codeop.py +++ b/Lib/test/test_codeop.py @@ -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") |