Skip to content

Commit 31545bd

Browse files
committed
Fixed failing Windows unit test.
1 parent 1d135ae commit 31545bd

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

‎src/test/pythonEnvironments/base/locators/lowLevel/activestateLocator.unit.test.ts‎

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,14 @@ suite('ActiveState Locator', () => {
4545
sinon.stub(externalDependencies, 'shellExecute').callsFake((command: string) => {
4646
if (command === 'state projects -o editor') {
4747
return Promise.resolve<ExecutionResult<string>>({
48-
stdout: `[{"name":"test","organization":"test-org","local_checkouts":["does-not-matter"],"executables":["${path.join(
49-
testActiveStateDir,
50-
'c09080d1',
51-
'exec',
52-
)}"]},{"name":"test2","organization":"test-org","local_checkouts":["does-not-matter2"],"executables":["${path.join(
53-
testActiveStateDir,
54-
'2af6390a',
55-
'exec',
56-
)}"]}]\n\0`,
48+
stdout: `[{"name":"test","organization":"test-org","local_checkouts":["does-not-matter"],"executables":["${path
49+
.join(testActiveStateDir, 'c09080d1', 'exec')
50+
.replaceAll(
51+
'\\',
52+
'\\\\',
53+
)}"]},{"name":"test2","organization":"test-org","local_checkouts":["does-not-matter2"],"executables":["${path
54+
.join(testActiveStateDir, '2af6390a', 'exec')
55+
.replaceAll('\\', '\\\\')}"]}]\n\0`,
5756
});
5857
}
5958
return Promise.reject(new Error('Command failed'));

0 commit comments

Comments
 (0)