Don't assume exception order from nursery
parent
46070f99de
commit
a29924f330
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue