Skip to content

Commit 2ee669e

Browse files
committed
fix paths
1 parent 433fe63 commit 2ee669e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/test/unittest/common/python.unit.test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,8 @@ suite('Python API Tests', () => {
324324

325325
const result = await pythonApi.getInterpreterDetails();
326326

327-
expect(result.path).to.deep.equal([pythonPath]);
327+
// Use Uri.file().fsPath to get platform-normalized path for comparison
328+
expect(result.path).to.deep.equal([Uri.file(pythonPath).fsPath]);
328329
expect(result.resource).to.be.undefined;
329330
});
330331

@@ -342,7 +343,8 @@ suite('Python API Tests', () => {
342343

343344
const result = await pythonApi.getInterpreterDetails(resource);
344345

345-
expect(result.path).to.deep.equal([pythonPath]);
346+
// Use Uri.file().fsPath to get platform-normalized path for comparison
347+
expect(result.path).to.deep.equal([Uri.file(pythonPath).fsPath]);
346348
expect(result.resource).to.deep.equal(resource);
347349
});
348350

0 commit comments

Comments
 (0)