aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_codeop.py
diff options
context:
space:
mode:
authorPablo Galindo Salgado <Pablogsal@gmail.com>2024-01-05 12:16:46 +0000
committerGitHub <noreply@github.com>2024-01-05 12:16:46 +0000
commit3003fbbf00422bce6e327646063e97470afa9091 (patch)
tree81f2422f39b657209411d619d4f7f4874e162ec8 /Lib/test/test_codeop.py
parent0ae60b66dea5140382190463a676bafe706608f5 (diff)
downloadcpython-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.py3
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")