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 eb291e7 commit a32ffa5Copy full SHA for a32ffa5
src/_pytest/outcomes.py
@@ -5,6 +5,7 @@
5
import sys
6
from typing import Any
7
from typing import Optional
8
+from typing import Union
9
10
from packaging.version import Version
11
@@ -17,7 +18,9 @@ class OutcomeException(BaseException):
17
18
contain info about test and collection outcomes.
19
"""
20
- def __init__(self, msg: Optional[str] = None, pytrace: bool = True) -> None:
21
+ def __init__(
22
+ self, msg: Optional[Union[str, bytes]] = None, pytrace: bool = True
23
+ ) -> None:
24
BaseException.__init__(self, msg)
25
self.msg = msg
26
self.pytrace = pytrace
0 commit comments