Skip to content

Commit 5f1f644

Browse files
authored
Fix debugger tests to remove --file from the PTVSD CLI (#4193)
For #4157
1 parent 21e5f5f commit 5f1f644

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/test/debugger/attach.ptvsd.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ suite('Debugging - Attach Debugger', () => {
6161
// Set the path for PTVSD to be picked up.
6262
// tslint:disable-next-line:no-string-literal
6363
env['PYTHONPATH'] = PTVSD_PATH;
64-
const pythonArgs = ['-m', 'ptvsd', '--host', 'localhost', '--wait', '--port', `${port}`, '--file', fileToDebug.fileToCommandArgument()];
64+
const pythonArgs = ['-m', 'ptvsd', '--host', 'localhost', '--wait', '--port', `${port}`, fileToDebug.fileToCommandArgument()];
6565
proc = spawn(PYTHON_PATH, pythonArgs, { env: env, cwd: path.dirname(fileToDebug) });
6666
const exited = new Promise(resolve => proc.once('close', resolve));
6767
await sleep(3000);

src/test/debugger/capabilities.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ suite('Debugging - Capabilities', function () {
8989
const port = await getFreePort({ host, port: 3000 });
9090
const env = { ...process.env };
9191
env.PYTHONPATH = PTVSD_PATH;
92-
proc = spawn(PYTHON_PATH, ['-m', 'ptvsd', '--host', 'localhost', '--wait', '--port', `${port}`, '--file', fileToDebug], { cwd: path.dirname(fileToDebug), env });
92+
proc = spawn(PYTHON_PATH, ['-m', 'ptvsd', '--host', 'localhost', '--wait', '--port', `${port}`, fileToDebug], { cwd: path.dirname(fileToDebug), env });
9393
await sleep(3000);
9494

9595
const connected = createDeferred();

0 commit comments

Comments
 (0)