Skip to content

typing: Accept tuple of exceptions in assertRaises#577

Open
stephenfin wants to merge 2 commits intotesting-cabal:masterfrom
stephenfin:typing
Open

typing: Accept tuple of exceptions in assertRaises#577
stephenfin wants to merge 2 commits intotesting-cabal:masterfrom
stephenfin:typing

Conversation

@stephenfin
Copy link
Contributor

Per $subject. We also ensure we return Self from __enter__.

This accepts a tuple of exception types also, as the `isinstance` check
in `_AssertRaisesContext.__exit__` reveals.

Signed-off-by: Stephen Finucane <stephen@that.guru>
Signed-off-by: Stephen Finucane <stephen@that.guru>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant