Skip to content

Commit 6944a7f

Browse files
m-messerclaude
andcommitted
Apply REPL-style print to student code in unit_test mode
_add_repl_print was called in demo and io_test but not unit_test, so bare expressions produced no output even after stdout was wired into feedback. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent b09d939 commit 6944a7f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

evaluation_function/evaluation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ def _evaluate_unit(response: str, test_code: str, result: Result) -> Result:
253253

254254
results_path = tempfile.mktemp(suffix=".json")
255255
runner = _UNIT_RUNNER_TEMPLATE.format(results_path=results_path)
256-
combined = response + "\n\n" + test_code + runner
256+
combined = _add_repl_print(response) + "\n\n" + test_code + runner
257257
stdout, stderr, timed_out, _ = _run_code(combined, "")
258258

259259
test_results = None

0 commit comments

Comments
 (0)