diff --git a/extensions/positron-python/src/client/positron/webAppCommands.ts b/extensions/positron-python/src/client/positron/webAppCommands.ts index 309d922ec34..9940c5f6d79 100644 --- a/extensions/positron-python/src/client/positron/webAppCommands.ts +++ b/extensions/positron-python/src/client/positron/webAppCommands.ts @@ -313,8 +313,7 @@ function pathToModule(p: string): string { } // Otherwise, convert the path to a Python module format. - const parts = relativeDir.split(path.sep); - + const parts = relativeDir.split(/[/\\]/); return parts.concat(mod).join('.'); } diff --git a/test/e2e/tests/apps/python-apps.test.ts b/test/e2e/tests/apps/python-apps.test.ts index ef065fd96b4..e20229c9e34 100644 --- a/test/e2e/tests/apps/python-apps.test.ts +++ b/test/e2e/tests/apps/python-apps.test.ts @@ -39,7 +39,9 @@ test.describe('Python Applications', { }); }); - test('Python - Verify Basic FastAPI App [C903306]', async function ({ app, python }) { + test('Python - Verify Basic FastAPI App [C903306]', { + tag: [tags.WIN] + }, async function ({ app, python }) { const viewer = app.workbench.viewer; await app.workbench.quickaccess.openFile(join(app.workspacePathOrFolder, 'workspaces', 'python_apps', 'fastapi_example', 'fastapi_example.py'));