Don't assume exception order from nursery

acked_backup
Tyler Goodlet 2021-12-02 08:45:58 -05:00
parent 46070f99de
commit a29924f330
1 changed files with 5 additions and 1 deletions

View File

@ -128,7 +128,11 @@ def test_multierror_fast_nursery(arb_addr, start_method, num_subactors, delay):
if len(exceptions) == 2: if len(exceptions) == 2:
# sometimes oddly now there's an embedded BrokenResourceError ? # sometimes oddly now there's an embedded BrokenResourceError ?
exceptions = exceptions[1].exceptions for exc in exceptions:
excs = getattr(exc, 'exceptions', None)
if excs:
exceptions = excs
break
assert len(exceptions) == num_subactors assert len(exceptions) == num_subactors