File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed
Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -337,6 +337,7 @@ Serhii Mozghovyi
337337Seth Junot
338338Shantanu Jain
339339Shubham Adep
340+ Simon Blanchard
340341Simon Gomizelj
341342Simon Holesch
342343Simon Kerr
Original file line number Diff line number Diff line change 1+ Handle an edge case where :data: `sys.stderr ` might already be closed when :ref: `faulthandler ` is tearing down.
Original file line number Diff line number Diff line change 1- import io
21import os
32import sys
43from typing import Generator
@@ -51,7 +50,7 @@ def get_stderr_fileno() -> int:
5150 if fileno == - 1 :
5251 raise AttributeError ()
5352 return fileno
54- except (AttributeError , io . UnsupportedOperation ):
53+ except (AttributeError , ValueError ):
5554 # pytest-xdist monkeypatches sys.stderr with an object that is not an actual file.
5655 # https://docs.python.org/3/library/faulthandler.html#issue-with-file-descriptors
5756 # This is potentially dangerous, but the best we can do.
You can’t perform that action at this time.
0 commit comments