Skip to content

Commit c9e79d9

Browse files
committed
test(errors): exercise transported sandbox diagnostic
Signed-off-by: Paul Furgale <pfurgale@nvidia.com>
1 parent c1233f8 commit c9e79d9

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

tests/runtime/sandbox/test_executor.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,12 @@ async def test_cell_error_preserves_source_location_and_caret_across_process():
355355
res = await _run(ex, code, 75)
356356
assert res.error is not None
357357

358-
formatted = format_error_for_llm(res.error, code, line_offset=res.wrapper_line_offset)
358+
formatted = format_error_for_llm(
359+
res.error,
360+
code,
361+
line_offset=res.wrapper_line_offset,
362+
formatted_error=res.formatted_error,
363+
)
359364

360365
assert "Cell In[75], line 4" in formatted
361366
assert "start = text.index('missing')" in formatted

0 commit comments

Comments
 (0)