summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorPablo Galindo Salgado <Pablogsal@gmail.com>2024-01-05 13:23:40 (GMT)
committerGitHub <noreply@github.com>2024-01-05 13:23:40 (GMT)
commit0affc3d0f070f1fef4da915ba560875c7bcec7bb (patch)
treead3f3fdc281135829bf9c7174e3883fbff53b4bb /Lib/test
parent8435fbfe4e1adb77ef6652bdcbd473b473a08ba3 (diff)
downloadcpython-0affc3d0f070f1fef4da915ba560875c7bcec7bb.zip
cpython-0affc3d0f070f1fef4da915ba560875c7bcec7bb.tar.gz
cpython-0affc3d0f070f1fef4da915ba560875c7bcec7bb.tar.bz2
[3.12] gh-113703: Correctly identify incomplete f-strings in the codeop module (GH-113709) (#113733)
(cherry picked from commit 3003fbbf00422bce6e327646063e97470afa9091)
Diffstat (limited to 'Lib/test')
-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 2abb6c6..787bd1b 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")