From 581db62e7f0c2045468da3ebdb62715561b881d4 Mon Sep 17 00:00:00 2001 From: rocky Date: Sun, 15 Dec 2024 20:27:26 -0500 Subject: [PATCH] Try a more aggressive diversion in trace test --- test/builtin/test_trace.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/builtin/test_trace.py b/test/builtin/test_trace.py index b1d541682..68cff8ff7 100644 --- a/test/builtin/test_trace.py +++ b/test/builtin/test_trace.py @@ -46,7 +46,9 @@ def counting_print_evaluate( evaluate("f[x_] := x + f[x-1]; f[0] = 0") global trace_evaluation_calls trace_evaluation_calls = 0 - mathics.eval.tracing.print_evaluate = counting_print_evaluate + mathics.eval.tracing.print_evaluate = ( + mathics.eval.tracing.trace_evaluate_on_call + ) = mathics.eval.tracing.trace_evaluate_on_return = counting_print_evaluate evaluate("f[30] // TraceEvaluation") except AbortInterrupt: