From c2074e7b66a042492604fbf9ea80b71cdf848e93 Mon Sep 17 00:00:00 2001
From: Damien George <damien.p.george@gmail.com>
Date: Fri, 26 Oct 2018 16:36:29 +1100
Subject: [PATCH] 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).
---
 tests/cmdline/cmd_showbc.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/cmdline/cmd_showbc.py b/tests/cmdline/cmd_showbc.py
index 6e99fc418..916228356 100644
--- a/tests/cmdline/cmd_showbc.py
+++ b/tests/cmdline/cmd_showbc.py
@@ -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
 
-- 
GitLab