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 ae06baa commit c741105Copy full SHA for c741105
graalpython/com.oracle.graal.python.test/src/tests/test_frame_tests.py
@@ -126,6 +126,19 @@ def test_builtins():
126
assert print == sys._getframe().f_builtins["print"]
127
128
129
+def test_locals_sync():
130
+ a = 1
131
+ l = locals()
132
+ assert l == {'a': 1}
133
+ b = 2
134
+ # Forces caller frame materialization, this used to erroneously cause the locals dict to update
135
+ globals()
136
137
+ # Now this should really cause the locals dict to update
138
+ locals()
139
+ assert l == {'a': 1, 'b': 2, 'l': l}
140
+
141
142
# GR-22089
143
# def test_backref_from_traceback():
144
# def bar():
0 commit comments