Skip to content

Commit a237618

Browse files
Copilotedvilme
andauthored
test: clarify forward-slash normalization in multi-root test assertions
Agent-Logs-Url: https://github.com/microsoft/vscode-python-environments/sessions/dc6f6330-b142-4812-ad6e-de7204f2bb93 Co-authored-by: edvilme <5952839+edvilme@users.noreply.github.com>
1 parent 50c5856 commit a237618

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/test/managers/common/nativePythonFinder.getAllExtraSearchPaths.unit.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -588,6 +588,8 @@ suite('getAllExtraSearchPaths Integration Tests', () => {
588588
const result = await getAllExtraSearchPaths();
589589

590590
// Assert - relative paths resolved only against their own folder
591+
// .replace(/\\/g, '/') mirrors the normalization getAllExtraSearchPaths() applies to all
592+
// returned paths, so results always use forward slashes regardless of platform.
591593
const expected1 = path.resolve(workspace1.fsPath, 'envs').replace(/\\/g, '/');
592594
const expected2 = path.resolve(workspace2.fsPath, 'venvs').replace(/\\/g, '/');
593595
const wrong1In2 = path.resolve(workspace2.fsPath, 'envs').replace(/\\/g, '/');

0 commit comments

Comments
 (0)