Accept a multierror on cancellation (windows?)
parent
518a0d5e14
commit
d734dcede4
|
@ -126,6 +126,10 @@ def test_simple_context(
|
||||||
trio.run(main)
|
trio.run(main)
|
||||||
except error_parent:
|
except error_parent:
|
||||||
pass
|
pass
|
||||||
|
except trio.MultiError as me:
|
||||||
|
# XXX: on windows it seems we may have to expect the group error
|
||||||
|
from tractor._exceptions import is_multi_cancelled
|
||||||
|
assert is_multi_cancelled(me)
|
||||||
else:
|
else:
|
||||||
trio.run(main)
|
trio.run(main)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue