We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc54d6c commit 36bed3dCopy full SHA for 36bed3d
check50/assertions/runtime.py
@@ -101,7 +101,11 @@ def is_builtin_name(name):
101
eval_globals = caller_globals.copy()
102
eval_globals.update(eval_context)
103
104
- cond = eval(eval_src, eval_globals, eval_context)
+ # Merge locals with expression context for evaluation
105
+ eval_locals = caller_locals.copy()
106
+ eval_locals.update(eval_context)
107
+
108
+ cond = eval(eval_src, eval_globals, eval_locals)
109
110
# Finally, quit if the condition evaluated to True.
111
if cond:
0 commit comments