Skip to content

Remove debug print statements from unittest adapter output#25854

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/fix-unwanted-debug-output
Draft

Remove debug print statements from unittest adapter output#25854
Copilot wants to merge 2 commits intomainfrom
copilot/fix-unwanted-debug-output

Conversation

Copy link

Copilot AI commented Mar 11, 2026

PROJECT_ROOT_PATH is set, using /... as cwd for execution payload is printed to stdout during unittest discovery and execution, leaking into the Test Results panel.

  • Remove print() in python_files/unittestadapter/execution.py (execution path)
  • Remove print() in python_files/unittestadapter/discovery.py (discovery path)

All functional logic (reading the env var, setting top_level_dir, updating the global) is unchanged.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

…est adapter

Fixes #24743-like issue where "PROJECT_ROOT_PATH is set, using ... as cwd
for execution payload" debug output was appearing in Test Results output.

Removes print() calls from both execution.py and discovery.py while
preserving all functional logic.

Co-authored-by: eleanorjboyd <26030610+eleanorjboyd@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix unwanted debug output in unittest results Remove debug print statements from unittest adapter output Mar 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unwanted debug output when running unittests (again).

2 participants