Skip to content
Snippets Groups Projects
Commit c2074e7b authored by Damien George's avatar Damien George
Browse files

tests/cmdline/cmd_showbc.py: Fix test to explicitly declare nonlocal.

The way it was written previously the variable x was not an implicit
nonlocal, it was just a normal local (but the compiler has a bug which
incorrectly makes it a nonlocal).
parent 746dbf78
No related branches found
No related tags found
No related merge requests found
......@@ -108,7 +108,7 @@ def f():
# closed over variables
x = 1
def closure():
a = x + 1
nonlocal x; a = x + 1
x = 1
del x
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment