From d734dcede46f54c52d7071c687c98f5281d5824c Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Mon, 4 Oct 2021 11:43:50 -0400 Subject: [PATCH] Accept a multierror on cancellation (windows?) --- tests/test_2way.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_2way.py b/tests/test_2way.py index 218a5b8..4bad958 100644 --- a/tests/test_2way.py +++ b/tests/test_2way.py @@ -126,6 +126,10 @@ def test_simple_context( trio.run(main) except error_parent: 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: trio.run(main)