Only read `_mask_cases` if truthy, allow disabling for xfails
parent
04c3d5e239
commit
9aebe7d8f9
|
@ -163,6 +163,7 @@ async def maybe_raise_from_masking_exc(
|
||||||
# ^XXX, special case(s) where we warn-log bc likely
|
# ^XXX, special case(s) where we warn-log bc likely
|
||||||
# there will be no operational diff since the exc
|
# there will be no operational diff since the exc
|
||||||
# is always expected to be consumed.
|
# is always expected to be consumed.
|
||||||
|
|
||||||
) -> BoxedMaybeException:
|
) -> BoxedMaybeException:
|
||||||
'''
|
'''
|
||||||
Maybe un-mask and re-raise exception(s) suppressed by a known
|
Maybe un-mask and re-raise exception(s) suppressed by a known
|
||||||
|
@ -263,6 +264,8 @@ async def maybe_raise_from_masking_exc(
|
||||||
if len(masked) < 2:
|
if len(masked) < 2:
|
||||||
# don't unmask already known "special" cases..
|
# don't unmask already known "special" cases..
|
||||||
if (
|
if (
|
||||||
|
_mask_cases
|
||||||
|
and
|
||||||
(cases := _mask_cases.get(type(exc_ctx)))
|
(cases := _mask_cases.get(type(exc_ctx)))
|
||||||
and
|
and
|
||||||
(masker_frame := is_expected_masking_case(
|
(masker_frame := is_expected_masking_case(
|
||||||
|
|
Loading…
Reference in New Issue