Skip to content

Pytest and pylint discovery fails for Azure Dev Ops project name with spaces (%20) #9476

@chrislill

Description

@chrislill
  1. Create Azure Dev Ops project containing spaces
  2. Clone git repository
  3. Configure python environment with pytest and pylint
  4. Create a python file and unit test
  5. Open project in VS Code

Actual results:

  1. Pylint fatal error: "No module named c:\Users\clill\Source\Repos\Debswana0Predictive0Analytics0Platform\DBSAISolution\DBSAIModels\code\dbsai_downtime_coarse_dms\train_model.py"
  2. Test discovery error: "ERROR: Directory 'c:\Users\clill\Source\Repos\Debswana0Predictive0Analytics0Platform\DBSAISolution\DBSAIModels' not found. Check your '--rootdir' option."

Expected results:

  1. Pylint runs successfully
  2. Unit test is discovered by pytest

Note:
The root directory contains '0' where it should contain '%20'

Extension version: 2020.1.57204
VS Code version: Code 1.41.1 (26076a4de974ead31f97692a0d32f90d735645c0, 2019-12-18T14:58:56.166Z)
OS version: Windows_NT x64 10.0.18363

System Info
Item Value
CPUs Intel(R) Core(TM) i7-6600U CPU @ 2.60GHz (4 x 2808)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off
surface_control: disabled_off
surface_synchronization: enabled_on
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 15.93GB (6.55GB free)
Process Argv
Screen Reader no
VM 0%

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions