Skip to content

Commit 03de30c

Browse files
karthiknadigwesm
authored andcommitted
Fix test line endings (microsoft/vscode-python#18400)
1 parent 956ad3f commit 03de30c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

extensions/positron-python/src/test/common/process/pythonProc.simple.multiroot.test.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { expect, use } from 'chai';
77
import * as chaiAsPromised from 'chai-as-promised';
88
import { execFile } from 'child_process';
99
import * as fs from 'fs-extra';
10-
import { EOL } from 'os';
1110
import * as path from 'path';
1211
import { ConfigurationTarget, Uri } from 'vscode';
1312
import { IPythonExecutionFactory, StdErrError } from '../../../client/common/process/types';
@@ -75,12 +74,12 @@ suite('PythonExecutableService', () => {
7574
test('Importing with a valid PYTHONPATH from .env file should succeed', async () => {
7675
await configService.updateSetting('envFile', undefined, workspace4PyFile, ConfigurationTarget.WorkspaceFolder);
7776
const pythonExecService = await pythonExecFactory.create({ resource: workspace4PyFile });
78-
const promise = pythonExecService.exec([workspace4PyFile.fsPath], {
77+
const result = await pythonExecService.exec([workspace4PyFile.fsPath], {
7978
cwd: path.dirname(workspace4PyFile.fsPath),
8079
throwOnStdErr: true,
8180
});
8281

83-
await expect(promise).to.eventually.have.property('stdout', `Hello${EOL}`);
82+
expect(result.stdout.startsWith('Hello')).to.be.equals(true);
8483
}).timeout(TEST_TIMEOUT * 3);
8584

8685
test("Known modules such as 'os' and 'sys' should be deemed 'installed'", async () => {

0 commit comments

Comments
 (0)