We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88f9aee commit eb291e7Copy full SHA for eb291e7
src/_pytest/_code/code.py
@@ -520,7 +520,9 @@ def exconly(self, tryshort: bool = False) -> str:
520
text = text[len(self._striptext) :]
521
return text
522
523
- def errisinstance(self, exc: "Type[BaseException]") -> bool:
+ def errisinstance(
524
+ self, exc: Union["Type[BaseException]", Tuple["Type[BaseException]", ...]]
525
+ ) -> bool:
526
""" return True if the exception is an instance of exc """
527
return isinstance(self.value, exc)
528
0 commit comments