We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7879c95 commit b98d78aCopy full SHA for b98d78a
graalpython/com.oracle.graal.python.test/src/tests/test_exec.py
@@ -266,3 +266,14 @@ def test_issue3297(self):
266
assert d['a'] == d['b']
267
assert len(d['a']) == len(d['b'])
268
269
+
270
+ def test_locals_call(self):
271
+ l = locals()
272
+ exec("""if 1:
273
+ assert locals() is l
274
+ def f(a):
275
+ exec('a=3')
276
+ return a
277
+ x = f(4)\n""")
278
+ assert eval("locals() is l")
279
+ assert l["x"] == 4
0 commit comments