2024-12-10 15:51:25.754 [info] Discover tests for workspace name: python - uri: d:\Dev\Repos\myproject\python
2024-12-10 15:51:25.754 [info] Running discovery for unittest using the new test adapter.
2024-12-10 15:51:25.766 [info] > D:\miniforge3\Scripts\conda.exe run -n MyCondaEnv --no-capture-output python ~\.vscode\extensions\ms-python.python-2024.14.1-win32-x64\python_files\get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.14.1-win32-x64/python_files/printEnvVariables.py
2024-12-10 15:51:25.766 [info] shell: commandPrompt
2024-12-10 15:51:26.671 [info] > pixi --version
2024-12-10 15:51:26.672 [warning] could not find a pixi interpreter for the interpreter at D:\miniforge3\envs\MyCondaEnv\python.exe
2024-12-10 15:51:26.718 [info] Discovering unittest tests for workspace d:\Dev\Repos\myproject\python with arguments: c:\Users\z003wy1p\.vscode\extensions\ms-python.python-2024.14.1-win32-x64\python_files\unittestadapter\discovery.py,--udiscovery,-v,-p,*_test.py
2024-12-10 15:51:26.718 [info] > python ~\.vscode\extensions\ms-python.python-2024.14.1-win32-x64\python_files\unittestadapter\discovery.py --udiscovery -v -p *_test.py
2024-12-10 15:51:26.718 [info] cwd: .
2024-12-10 15:51:26.807 [error] Python konnte nicht gefunden werden. F�hren Sie die Verkn�pfung ohne Argumente aus, um sie �ber den Microsoft Store zu installieren, oder deaktivieren Sie diese Verkn�pfung unter
2024-12-10 15:51:26.813 [error] Subprocess exited unsuccessfully with exit code 9009 and signal null on workspace d:\Dev\Repos\myproject\python. Creating and sending error discovery payload
2024-12-10 15:51:26.813 [error] Subprocess exited unsuccessfully with exit code 9009 and signal null on workspace d:\Dev\Repos\myproject\python. Creating and sending error discovery payload
2024-12-10 15:51:26.813 [error] Unittest test discovery error for workspace: d:\Dev\Repos\myproject\python
The python test process was terminated before it could exit on its own, the process errored with: Code: 9009, Signal: null for workspace d:\Dev\Repos\myproject\python
Type: Bug
Behaviour
I cannot run unittests with the new pythonTestAdapter. During test discovery I get the error that "Python" could not be found and hence the test process exits.
But:
"python.experiments.optOutFrom": ["pythonTestAdapter"]to settings.json, integrated testing works fine.Steps to reproduce:
Diagnostic data
Output for
Pythonin theOutputpanel (View→Output, change the drop-down the upper-right of theOutputpanel toPython)Extension version: 2024.14.1
VS Code version: Code 1.92.2 (fee1edb8d6d72a0ddff41e5f71a671c23ed924b9, 2024-08-14T17:29:30.058Z)
OS version: Windows_NT x64 10.0.19045
Modes:
python.languageServersetting: DefaultUser Settings
Installed Extensions
System Info
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
A/B Experiments