Skip to content

pytest Discovery Error #24755

@chemelli74

Description

@chemelli74

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:

  1. Open VScode
  2. Clone HomeAssistant dev container
  3. Run pytests discovery

Message:

Image

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)

Metadata

Metadata

Assignees

Labels

area-testinginfo-neededIssue requires more information from postertriage-neededNeeds assignment to the proper sub-team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions