Add back loose-tn in `gather_contexts()`, mk tests green

main^2
Tyler Goodlet 2025-07-16 18:18:34 -04:00
parent 4569d11052
commit 1af35f8170
2 changed files with 3 additions and 4 deletions

View File

@ -154,7 +154,7 @@ async def gather_contexts(
async with ( async with (
# collapse_eg(), # collapse_eg(),
trio.open_nursery( trio.open_nursery(
# strict_exception_groups=False, strict_exception_groups=False,
# ^XXX^ TODO? soo roll our own then ?? # ^XXX^ TODO? soo roll our own then ??
# -> since we kinda want the "if only one `.exception` then # -> since we kinda want the "if only one `.exception` then
# just raise that" interface? # just raise that" interface?

View File

@ -60,8 +60,8 @@ def find_masked_excs(
return None return None
# XXX, relevant ish discussion @ `trio`-core, # XXX, relevant discussion @ `trio`-core,
# https://github.com/python-trio/trio/issues/455#issuecomment-2785122216 # https://github.com/python-trio/trio/issues/455
# #
@acm @acm
async def maybe_raise_from_masking_exc( async def maybe_raise_from_masking_exc(
@ -113,7 +113,6 @@ async def maybe_raise_from_masking_exc(
) )
matching: list[BaseException]|None = None matching: list[BaseException]|None = None
maybe_eg: ExceptionGroup|None maybe_eg: ExceptionGroup|None
maybe_eg: ExceptionGroup|None
if tn: if tn:
try: # handle egs try: # handle egs