From 738279d812a71255878cb7b07ea3c29b208bb9ef Mon Sep 17 00:00:00 2001 From: Xinlong Hu <118075581+XinlongCS@users.noreply.github.com> Date: Mon, 14 Jul 2025 17:58:56 -0500 Subject: [PATCH] Update Exception test cases --- test/Exception.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/Exception.py b/test/Exception.py index 41b5dc3..9f7be5b 100644 --- a/test/Exception.py +++ b/test/Exception.py @@ -476,6 +476,13 @@ def ab1_named_except_return(): print(2) return 3 +# 3.12 NamedExc not matching +def ab2_named_except_return(): + try: + return a + except Exception as a: + return b + # 3.11/3.12/3.13 No template match def ac0_empty_try_finally(): try: