Skip to content

Unwanted debug output when running unittests (again). #25807

@ziesemer

Description

@ziesemer

Type: Bug

Behavior

This is a near repeat of #24743.

Extraneous output is being included into the "Test Results" output when running Python tests using unittest (the "Standard Python test framework").

Image

Specifically, the PROJECT_ROOT_PATH is set, using /... as cwd for execution payload is unnecessary and unwanted.

f"PROJECT_ROOT_PATH is set, using {project_root_path} as cwd for execution payload"

Steps to reproduce:

  1. Run any Python unit tests using unittest.
  2. Observe the extraneous output in the Test Results output.

Diagnostic data

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

XXX

Extension version: 2026.2.2026021801
VS Code version: Code 1.109.5 (072586267e68ece9a47aa43f8c108e0dcbf44622, 2026-02-19T19:43:32.382Z)
OS version: Windows_NT x64 10.0.26200
Modes:
Remote OS version: Linux arm64 6.12.62+rpt-rpi-2712

  • Python version (& distribution if applicable, e.g. Anaconda): 3.13.5.final.0
  • Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): System
  • Value of the python.languageServer setting: Pylance
User Settings


languageServer: "Pylance"

testing
• unittestEnabled: true

Installed Extensions
Extension Name Extension Id Version
python ms- 2026.2.0
vscode-pylance ms- 2026.1.1
vscode-python-envs ms- 1.16.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    triage-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