Skip to content

Commit

Permalink
Use type match of expected error
Browse files Browse the repository at this point in the history
  • Loading branch information
goodboy committed Oct 15, 2021
1 parent e4ed0fd commit 12675f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_cancellation.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ async def test_nested_multierrors(loglevel, start_method):
if subsub in (tractor.RemoteActorError,):
subsub = subsub.type

assert subsub in (
assert type(subsub) in (
trio.Cancelled,
trio.MultiError,
)
Expand Down

0 comments on commit 12675f4

Please sign in to comment.