Python Pytest parametrized test with dynamic name causes test running to fail #24605
Labels
area-testing
bug
Issue identified by VS Code Team member as probable bug
info-needed
Issue requires more information from poster
triage-needed
Needs assignment to the proper sub-team
Type: Bug
Behaviour
If you have a Pytest parametrized test who's identifier is generated dynamically, then running tests from the test panel in VS Code fails with an error.
Steps to reproduce:
If you run this test, it fails with an error similar to:
If you comment out the call to
make_uuid
in the parameterization block it succeeds without issue.Diagnostic data
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)VS Code version: Code 1.96.0 (138f619c86f1199955d53b4166bef66ef252935c, 2024-12-11T02:29:09.626Z)
OS version: Darwin arm64 22.6.0
Modes:
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
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Extensions (91)
(1 theme extensions excluded)
A/B Experiments
The text was updated successfully, but these errors were encountered: