Skip to content

Commit

Permalink
Fixing python path
Browse files Browse the repository at this point in the history
  • Loading branch information
eleanorjboyd committed May 12, 2023
1 parent 2fb18e9 commit 75ee993
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"XVSC_PYTHON_LOG_TELEMETRY": "1",
// Enable this to log debugger output. Directory must exist ahead of time
"XDEBUGPY_LOG_DIR": "${workspaceRoot}/tmp/Debug_Output_Ex",
// "ENABLE_PYTHON_TESTING_REWRITE": "1"
"ENABLE_PYTHON_TESTING_REWRITE": "1"
}
},
{
Expand Down
6 changes: 0 additions & 6 deletions src/client/common/process/internal/scripts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,6 @@ export function execution_py_testlauncher(testArgs: string[]): string[] {
return [script, ...testArgs];
}

// eslint-disable-next-line camelcase
export function execution_pytest_testlauncher(testArgs: string[]): string[] {
// const script = path.join(SCRIPTS_DIR, 'unittestadapter', 'execution.py');
return ['/opt/homebrew/bin/python3', ...testArgs];
}

// tensorboard_launcher.py

export function tensorboardLauncher(args: string[]): string[] {
Expand Down
2 changes: 1 addition & 1 deletion src/client/testing/common/debugLauncher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ export class DebugLauncher implements ITestDebugLauncher {
}
case 'pytest': {
if (rewriteTestingEnabled) {
return internalScripts.execution_pytest_testlauncher; // this is the new way to run pytest execution, debugger
return (testArgs: string[]) => testArgs;
}
return internalScripts.testlauncher; // old way pytest execution, debugger
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ import {
IPythonExecutionFactory,
SpawnOptions,
} from '../../../common/process/types';
import { EXTENSION_ROOT_DIR } from '../../../constants';
import { removePositionalFoldersAndFiles } from './arguments';
import { ITestDebugLauncher, LaunchOptions } from '../../common/types';
import { PYTEST_PROVIDER } from '../../common/constants';
import { EXTENSION_ROOT_DIR } from '../../../common/constants';

// eslint-disable-next-line @typescript-eslint/no-explicit-any
(global as any).EXTENSION_ROOT_DIR = EXTENSION_ROOT_DIR;
// (global as any).EXTENSION_ROOT_DIR = EXTENSION_ROOT_DIR;
/**
* Wrapper Class for pytest test execution. This is where we call `runTestCommand`?
*/
Expand Down

0 comments on commit 75ee993

Please sign in to comment.