File tree Expand file tree Collapse file tree 1 file changed +1
-12
lines changed
Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change 1313# limitations under the License.
1414
1515import asyncio
16- import io
1716import os
1817import subprocess
1918import sys
@@ -43,22 +42,12 @@ def compute_driver_executable() -> Path:
4342async def run_driver_async () -> Connection :
4443 driver_executable = compute_driver_executable ()
4544
46- # Sourced from: https://github.com/pytest-dev/pytest/blob/824e9cf67abcfc47df25a59bf32ebd8c25fbd02a/src/_pytest/faulthandler.py#L70-L77
47- def _get_stderr_fileno () -> int :
48- try :
49- return sys .stderr .fileno ()
50- except (AttributeError , io .UnsupportedOperation ):
51- # pytest-xdist monkeypatches sys.stderr with an object that is not an actual file.
52- # https://docs.python.org/3/library/faulthandler.html#issue-with-file-descriptors
53- # This is potentially dangerous, but the best we can do.
54- return sys .__stderr__ .fileno ()
55-
5645 proc = await asyncio .create_subprocess_exec (
5746 str (driver_executable ),
5847 "run-driver" ,
5948 stdin = asyncio .subprocess .PIPE ,
6049 stdout = asyncio .subprocess .PIPE ,
61- stderr = _get_stderr_fileno () ,
50+ stderr = sys . stderr ,
6251 limit = 32768 ,
6352 )
6453 assert proc .stdout
You can’t perform that action at this time.
0 commit comments