File tree Expand file tree Collapse file tree 4 files changed +4
-10
lines changed
common/process/internal/scripts Expand file tree Collapse file tree 4 files changed +4
-10
lines changed Original file line number Diff line number Diff line change 23
23
"XVSC_PYTHON_LOG_TELEMETRY" : " 1" ,
24
24
// Enable this to log debugger output. Directory must exist ahead of time
25
25
"XDEBUGPY_LOG_DIR" : " ${workspaceRoot}/tmp/Debug_Output_Ex" ,
26
- // "ENABLE_PYTHON_TESTING_REWRITE": "1"
26
+ "ENABLE_PYTHON_TESTING_REWRITE" : " 1"
27
27
}
28
28
},
29
29
{
Original file line number Diff line number Diff line change @@ -126,12 +126,6 @@ export function execution_py_testlauncher(testArgs: string[]): string[] {
126
126
return [ script , ...testArgs ] ;
127
127
}
128
128
129
- // eslint-disable-next-line camelcase
130
- export function execution_pytest_testlauncher ( testArgs : string [ ] ) : string [ ] {
131
- // const script = path.join(SCRIPTS_DIR, 'unittestadapter', 'execution.py');
132
- return [ '/opt/homebrew/bin/python3' , ...testArgs ] ;
133
- }
134
-
135
129
// tensorboard_launcher.py
136
130
137
131
export function tensorboardLauncher ( args : string [ ] ) : string [ ] {
Original file line number Diff line number Diff line change @@ -238,7 +238,7 @@ export class DebugLauncher implements ITestDebugLauncher {
238
238
}
239
239
case 'pytest' : {
240
240
if ( rewriteTestingEnabled ) {
241
- return internalScripts . execution_pytest_testlauncher ; // this is the new way to run pytest execution, debugger
241
+ return ( testArgs : string [ ] ) => testArgs ;
242
242
}
243
243
return internalScripts . testlauncher ; // old way pytest execution, debugger
244
244
}
Original file line number Diff line number Diff line change @@ -12,13 +12,13 @@ import {
12
12
IPythonExecutionFactory ,
13
13
SpawnOptions ,
14
14
} from '../../../common/process/types' ;
15
- import { EXTENSION_ROOT_DIR } from '../../../constants' ;
16
15
import { removePositionalFoldersAndFiles } from './arguments' ;
17
16
import { ITestDebugLauncher , LaunchOptions } from '../../common/types' ;
18
17
import { PYTEST_PROVIDER } from '../../common/constants' ;
18
+ import { EXTENSION_ROOT_DIR } from '../../../common/constants' ;
19
19
20
20
// eslint-disable-next-line @typescript-eslint/no-explicit-any
21
- ( global as any ) . EXTENSION_ROOT_DIR = EXTENSION_ROOT_DIR ;
21
+ // (global as any).EXTENSION_ROOT_DIR = EXTENSION_ROOT_DIR;
22
22
/**
23
23
* Wrapper Class for pytest test execution. This is where we call `runTestCommand`?
24
24
*/
You can’t perform that action at this time.
0 commit comments