Compare commits

...

2 Commits

Author SHA1 Message Date
Tyler Goodlet 1ccb14455d Passthrough `_pause()` kwargs from `_maybe_enter_pm()` 2025-04-11 01:16:46 -04:00
Tyler Goodlet d534f1491b Fix assert on `.devx.maybe_open_crash_handler()` delivered `bxerr` 2025-04-11 01:16:12 -04:00
2 changed files with 4 additions and 1 deletions

View File

@ -180,7 +180,8 @@ def test_acm_embedded_nursery_propagates_enter_err(
with tractor.devx.maybe_open_crash_handler( with tractor.devx.maybe_open_crash_handler(
pdb=debug_mode, pdb=debug_mode,
) as bxerr: ) as bxerr:
assert not bxerr.value if bxerr:
assert not bxerr.value
async with ( async with (
wraps_tn_that_always_cancels() as tn, wraps_tn_that_always_cancels() as tn,

View File

@ -3003,6 +3003,7 @@ async def _maybe_enter_pm(
[BaseException|BaseExceptionGroup], [BaseException|BaseExceptionGroup],
bool, bool,
] = lambda err: not is_multi_cancelled(err), ] = lambda err: not is_multi_cancelled(err),
**_pause_kws,
): ):
if ( if (
@ -3029,6 +3030,7 @@ async def _maybe_enter_pm(
await post_mortem( await post_mortem(
api_frame=api_frame, api_frame=api_frame,
tb=tb, tb=tb,
**_pause_kws,
) )
return True return True