@@ -35,11 +35,7 @@ suite(`Module Debugging - Misc tests: ${debuggerType}`, () => {
3535 }  catch  ( ex )  {  } 
3636 await  sleep ( 1000 ) ; 
3737 } ) ; 
38-  function  buildLauncArgs ( ) : LaunchRequestArguments  { 
39-  const  env  =  { } ; 
40-  // tslint:disable-next-line:no-string-literal 
41-  env [ 'PYTHONPATH' ]  =  `.${ path . delimiter } ${ PTVSD_PATH }  ; 
42- 
38+  function  buildLaunchArgs ( ) : LaunchRequestArguments  { 
4339 // tslint:disable-next-line:no-unnecessary-local-variable 
4440 const  options : LaunchRequestArguments  =  { 
4541 module : 'mymod' , 
@@ -48,7 +44,7 @@ suite(`Module Debugging - Misc tests: ${debuggerType}`, () => {
4844 debugOptions : [ DebugOptions . RedirectOutput ] , 
4945 pythonPath : PYTHON_PATH , 
5046 args : [ ] , 
51-  env, 
47+  env :  {   PYTHONPATH :  ` ${ PTVSD_PATH } `   } , 
5248 envFile : '' , 
5349 logToFile : false , 
5450 type : debuggerType 
@@ -60,7 +56,7 @@ suite(`Module Debugging - Misc tests: ${debuggerType}`, () => {
6056 test ( 'Test stdout output' ,  async  ( )  =>  { 
6157 await  Promise . all ( [ 
6258 debugClient . configurationSequence ( ) , 
63-  debugClient . launch ( buildLauncArgs ( ) ) , 
59+  debugClient . launch ( buildLaunchArgs ( ) ) , 
6460 debugClient . waitForEvent ( 'initialized' ) , 
6561 debugClient . assertOutput ( 'stdout' ,  'Hello world!' ) , 
6662 debugClient . waitForEvent ( 'exited' ) , 
0 commit comments