forked from goodboy/tractor
1
0
Fork 0

Accept a multierror on cancellation (windows?)

fix_kbi_in_ctx_block
Tyler Goodlet 2021-10-04 11:43:50 -04:00
parent 518a0d5e14
commit d734dcede4
1 changed files with 4 additions and 0 deletions

View File

@ -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)