Skip to content

Commit 6256868

Browse files
IanMatthewHuffIan Huff
andauthored
fix nightly failing flake test for current directory (microsoft#13606)
Co-authored-by: Ian Huff <ianhuff@AAULMER-DT1.redmond.corp.microsoft.com>
1 parent f3d30bd commit 6256868

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

news/3 Code Health/13605.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix nightly flake test current directory failing test.

src/test/datascience/notebook.functional.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1467,14 +1467,14 @@ plt.show()`,
14671467
runTest('Current directory', async () => {
14681468
const rootFolder = ioc.get<IWorkspaceService>(IWorkspaceService).rootPath!;
14691469
const escapedPath = `'${rootFolder.replace(/\\/g, '\\\\')}'`;
1470-
addMockData(`import os\nprint(os.getcwd())`, escapedPath);
1470+
addMockData(`import os\nos.getcwd()`, escapedPath);
14711471
const notebook = await notebookProvider.getOrCreateNotebook({
14721472
identity: getDefaultInteractiveIdentity(),
14731473
resource: Uri.file(path.join(rootFolder, 'foo.ipynb'))
14741474
});
14751475

14761476
assert.ok(notebook, 'did not create notebook');
1477-
await verifySimple(notebook, `import os\nprint(os.getcwd())`, escapedPath, true);
1477+
await verifySimple(notebook, `import os\nos.getcwd()`, escapedPath, true);
14781478
});
14791479
});
14801480
});

0 commit comments

Comments
 (0)