@@ -41,7 +41,7 @@ suite('Debugging - Adapter Factory', () => {
41
41
42
42
const nodeExecutable = undefined ;
43
43
const debugAdapterPath = path . join ( EXTENSION_ROOT_DIR , 'bundled' , 'libs' , 'debugpy' , 'adapter' ) ;
44
- const pythonPath = path . join ( 'path' , 'to' , ' python' , ' interpreter') ;
44
+ const pythonPath = 'path/to/ python/ interpreter' ;
45
45
const interpreter = {
46
46
architecture : Architecture . Unknown ,
47
47
path : pythonPath ,
@@ -292,9 +292,9 @@ suite('Debugging - Adapter Factory', () => {
292
292
assert . deepStrictEqual ( descriptor , debugExecutable ) ;
293
293
} ) ;
294
294
test ( 'Add quotes to interpreter path with spaces' , async ( ) => {
295
- const customAdapterPath = path . join ( 'custom' , ' debug' , ' adapter' , ' customAdapterPath') ;
295
+ const customAdapterPath = 'custom/ debug/ adapter/ customAdapterPath' ;
296
296
const session = createSession ( { debugAdapterPath : customAdapterPath } ) ;
297
- const interpreterPathSpaces = path . join ( 'path' , 'to' , ' python interpreter with spaces') ;
297
+ const interpreterPathSpaces = 'path/to/ python interpreter with spaces' ;
298
298
const interpreterPathSpacesQuoted = `"${ interpreterPathSpaces } "` ;
299
299
const debugExecutable = new DebugAdapterExecutable ( interpreterPathSpacesQuoted , [ customAdapterPath ] ) ;
300
300
0 commit comments