vscode
vscode copied to clipboard
pytest Discovery Error
Does this issue occur when all extensions are disabled?: Yes/No
- VS Code Version: v1.96.2
- OS Version: Windows 11 23H2
Steps to Reproduce:
- Open VScode
- Clone HomeAssistant dev container
- Run pytests discovery
Message:
Full log:
2025-01-10 20:33:30.996 [info] > ~/.local/ha-venv/bin/python ~/.vscode-server/extensions/ms-python.python-2024.22.2-linux-x64/python_files/testing_tools/run_adapter.py discover pytest -- --rootdir ./tests -s --cache-clear --no-cov
2025-01-10 20:33:30.996 [info] cwd: ./tests
2025-01-10 20:45:41.827 [error] Error discovering pytest tests:
n [Error]: Exception ignored in: <_Py3Utf8Output name=3 encoding='utf8'>
OSError: [Errno 9] Bad file descriptor
Exception ignored in: <_Py3Utf8Output name=3 encoding='utf8'>
OSError: [Errno 9] Bad file descriptor
at ChildProcess.<anonymous> (/home/vscode/.vscode-server/extensions/ms-python.python-2024.22.2-linux-x64/out/client/extension.js:2:254172)
at Object.onceWrapper (node:events:633:26)
at ChildProcess.emit (node:events:518:28)
at maybeClose (node:internal/child_process:1104:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:304:5)