summaryrefslogtreecommitdiffstats
path: root/Lib/test/inspect_fodder.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-05-31 10:11:39 (GMT)
committerGitHub <noreply@github.com>2023-05-31 10:11:39 (GMT)
commit2f8c22f1d6c22f018c78264937db66d52fb18869 (patch)
tree0ec6e97374f6c77109a4701820b04294017dabaa /Lib/test/inspect_fodder.py
parent4729100239ce5486fce0ff4d62dad52c30e108c3 (diff)
downloadcpython-2f8c22f1d6c22f018c78264937db66d52fb18869.zip
cpython-2f8c22f1d6c22f018c78264937db66d52fb18869.tar.gz
cpython-2f8c22f1d6c22f018c78264937db66d52fb18869.tar.bz2
[3.12] gh-105042: Disable unmatched parens syntax error in python tokenize (GH-105061) (#105120)
gh-105042: Disable unmatched parens syntax error in python tokenize (GH-105061) (cherry picked from commit 70f315c2d6de87b0514ce16cc00a91a5b60a6098) Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
Diffstat (limited to 'Lib/test/inspect_fodder.py')
-rw-r--r--Lib/test/inspect_fodder.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/inspect_fodder.py b/Lib/test/inspect_fodder.py
index 567dfba..60ba7aa 100644
--- a/Lib/test/inspect_fodder.py
+++ b/Lib/test/inspect_fodder.py
@@ -113,3 +113,8 @@ class WhichComments:
# after asyncf - line 113
# end of WhichComments - line 114
# after WhichComments - line 115
+
+# Test that getsource works on a line that includes
+# a closing parenthesis with the opening paren being in another line
+(
+); after_closing = lambda: 1