Skip to content

Commit 34295a2

Browse files
committed
Fix tests
1 parent 5e16ec2 commit 34295a2

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/test/datascience/notebook/kernelSelection.vscode.test.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,17 @@ suite('DataScience - VSCode Notebook - Kernel Selection', function () {
150150
await Promise.all([runAllCellsInActiveNotebook(), waitForExecutionCompletedSuccessfully(cell)]);
151151

152152
// Confirm the executable printed as a result of code in cell `import sys;sys.executable`
153-
assertHasTextOutputInVSCode(cell, getNormalizedInterpreterPath(activeInterpreterPath), 0, false);
153+
const output = getTextOutputValue(cell.outputs[0]);
154+
if (
155+
!output.includes(getNormalizedInterpreterPath(activeInterpreterPath)) &&
156+
!output.includes(activeInterpreterPath)
157+
) {
158+
assert.fail(
159+
output,
160+
`Expected ${getNormalizedInterpreterPath(activeInterpreterPath)} or ${activeInterpreterPath}`,
161+
'Interpreter does not match'
162+
);
163+
}
154164
});
155165
test('Ensure kernel is auto selected and interpreter is as expected', async function () {
156166
if (IS_REMOTE_NATIVE_TEST) {

0 commit comments

Comments
 (0)