From 404bb9ca90d3c872a81f5cadbafda3320a659fcb Mon Sep 17 00:00:00 2001 From: Beomsoo Kim Date: Tue, 12 Nov 2024 21:42:21 +0900 Subject: [PATCH] Add a Tests NEWS entry --- .../next/Tests/2024-11-12-21-41-57.gh-issue-58749.LuzORa.rst | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 Misc/NEWS.d/next/Tests/2024-11-12-21-41-57.gh-issue-58749.LuzORa.rst diff --git a/Misc/NEWS.d/next/Tests/2024-11-12-21-41-57.gh-issue-58749.LuzORa.rst b/Misc/NEWS.d/next/Tests/2024-11-12-21-41-57.gh-issue-58749.LuzORa.rst new file mode 100644 index 00000000000..3feef9fe6d0 --- /dev/null +++ b/Misc/NEWS.d/next/Tests/2024-11-12-21-41-57.gh-issue-58749.LuzORa.rst @@ -0,0 +1,5 @@ +Added tests to verify that `global` and `nonlocal` statement names are only +restricted from use or assignment before their declaration, aligning with +the updated language specification and CPython's behavior. The tests also +ensure that `global` and `nonlocal` statements exhibit correct behavior. +Change by Beomsoo Kim.