Skip to content

Commit 98ece5d

Browse files
authored
use session.evaluate instead of session.parse(...).evaluate (#1543)
Just a small fix to the `test/builtin/drawing/test_plot_detail.py`: using `session.evaluate` ensures that trailing messages from previous tests are cleaned before the new evaluation. This was the reason for the last failure in CI for #1538
1 parent 6669d53 commit 98ece5d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/builtin/drawing/test_plot_detail.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,7 @@ def one_test(name, str_expr, vec, opt, act_dir="/tmp"):
139139

140140
try:
141141
# evaluate the expression to be tested
142-
expr = session.parse(str_expr)
143-
act_expr = expr.evaluate(session.evaluation)
142+
act_expr = session.evaluate(str_expr)
144143
if len(session.evaluation.out):
145144
print("=== messages:")
146145
for message in session.evaluation.out:

0 commit comments

Comments
 (0)