From 3003fbbf00422bce6e327646063e97470afa9091 Mon Sep 17 00:00:00 2001 From: Pablo Galindo Salgado Date: Fri, 5 Jan 2024 12:16:46 +0000 Subject: gh-113703: Correctly identify incomplete f-strings in the codeop module (#113709) --- Lib/test/test_codeop.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Lib/test/test_codeop.py') 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") -- cgit v1.2.3