@@ -286,9 +286,8 @@ async def test_runner_dispatches_to_registered_plugin_executor(
286286 exec_req : ExecReqProvider ,
287287 monkeypatch : pytest .MonkeyPatch ,
288288) -> None :
289- """A factory registered against ``marimo.cell.executor`` is the one
290- the kernel ``Runner`` dispatches through — proves the plugin flow
291- works end-to-end, not just the registry in isolation."""
289+ """A factory registered against `marimo.cell.executor` is the one
290+ the kernel `Runner` dispatches through."""
292291 from typing import Any
293292
294293 from marimo ._runtime .executor .evaluator import _EXECUTOR_REGISTRY
@@ -319,8 +318,8 @@ def factory() -> _SentinelExecutor:
319318 k = execution_kernel
320319 await k .run ([er := exec_req .get ("'hello'; 123" )])
321320
322- # Fully isolate the registry: replace both `` _plugins` ` and
323- # `` names` ` so installed third-party entry points can't shadow the
321+ # Fully isolate the registry: replace both `_plugins` and
322+ # `names` so installed third-party entry points can't shadow the
324323 # sentinel. monkeypatch restores both on teardown.
325324 monkeypatch .setattr (_EXECUTOR_REGISTRY , "_plugins" , {"sentinel" : factory })
326325 monkeypatch .setattr (_EXECUTOR_REGISTRY , "names" , lambda : ["sentinel" ])
@@ -344,9 +343,9 @@ def factory() -> _SentinelExecutor:
344343async def test_runner_interrupted_flag_flips_on_sync_marimo_interrupt (
345344 execution_kernel : Kernel , exec_req : ExecReqProvider
346345) -> None :
347- """Sync cell body raising `` MarimoInterrupt`` (== `` KeyboardInterrupt` `)
348- surfaces as a bare `` MarimoInterrupt` ` in the run result and flips
349- `` runner.interrupted``. Covers ``cell_runner.py:441-442` `."""
346+ """Sync cell body raising `MarimoInterrupt` (== `KeyboardInterrupt`)
347+ surfaces as a bare `MarimoInterrupt` in the run result and flips
348+ `runner.interrupted`."""
350349 k = execution_kernel
351350 await k .run ([er := exec_req .get ("raise KeyboardInterrupt" )])
352351
@@ -368,19 +367,16 @@ async def test_runner_interrupted_flag_flips_on_async_cell_cancellation(
368367 exec_req : ExecReqProvider ,
369368 monkeypatch : pytest .MonkeyPatch ,
370369) -> None :
371- """An async cell cancelled mid-await flips ``runner.interrupted``.
372-
373- After the production fix, ``CancelledError`` propagates unwrapped
374- from ``DefaultExecutor`` and arrives in the ``RunResult.exception``
375- as a bare ``asyncio.CancelledError``. ``_finalize_run_result``'s
376- bare-``CancelledError`` branch converts it to ``MarimoInterrupt``,
377- which ``run()`` recognises to flip the flag.
378-
379- We simulate the post-fix evaluator output directly (a bare
380- ``CancelledError`` in the ``RunResult``) so this test is independent
381- of the executor's coroutine compilation; the executor-level
382- propagation is covered by
383- ``test_executor_async_cancellation_propagates_unwrapped``.
370+ """An async cell cancelled mid-await flips `runner.interrupted`.
371+
372+ A bare `asyncio.CancelledError` arriving in `RunResult.exception` is
373+ converted to `MarimoInterrupt` by the bare-`CancelledError` branch
374+ of `_finalize_run_result`, which `run()` recognises to flip the
375+ flag.
376+
377+ Simulates the evaluator output directly (a bare `CancelledError` in
378+ the `RunResult`) so this test is independent of the executor's
379+ coroutine compilation.
384380 """
385381 import asyncio
386382
0 commit comments