File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -43,11 +43,11 @@ def compute_driver_executable() -> Path:
43
43
async def run_driver_async () -> Connection :
44
44
driver_executable = compute_driver_executable ()
45
45
46
- # Sourced from: https://github.com/pytest-dev/pytest/blob/49827adcb9256c9c9c06a25729421dcc3c385edc /src/_pytest/faulthandler.py#L73-L80
46
+ # Sourced from: https://github.com/pytest-dev/pytest/blob/824e9cf67abcfc47df25a59bf32ebd8c25fbd02a /src/_pytest/faulthandler.py#L70-L77
47
47
def _get_stderr_fileno () -> int :
48
48
try :
49
49
return sys .stderr .fileno ()
50
- except io .UnsupportedOperation :
50
+ except ( AttributeError , io .UnsupportedOperation ) :
51
51
# pytest-xdist monkeypatches sys.stderr with an object that is not an actual file.
52
52
# https://docs.python.org/3/library/faulthandler.html#issue-with-file-descriptors
53
53
# This is potentially dangerous, but the best we can do.
You can’t perform that action at this time.
0 commit comments