@@ -40,12 +40,13 @@ suite('Run without Debugging', () => {
4040 }  catch  ( ex )  {  } 
4141 await  sleep ( 1000 ) ; 
4242 } ) ; 
43-  function  buildLauncArgs ( pythonFile : string ,  stopOnEntry : boolean  =  false ) : LaunchRequestArguments  { 
43+  function  buildLaunchArgs ( pythonFile : string ,  stopOnEntry :  boolean   =   false ,   showReturnValue : boolean  =  false ) : LaunchRequestArguments  { 
4444 // tslint:disable-next-line:no-unnecessary-local-variable 
4545 return  { 
4646 program : path . join ( debugFilesPath ,  pythonFile ) , 
4747 cwd : debugFilesPath , 
4848 stopOnEntry, 
49+  showReturnValue, 
4950 noDebug : true , 
5051 debugOptions : [ DebugOptions . RedirectOutput ] , 
5152 pythonPath : PYTHON_PATH , 
@@ -62,15 +63,15 @@ suite('Run without Debugging', () => {
6263 test ( 'Should run program to the end' ,  async  ( )  =>  { 
6364 await  Promise . all ( [ 
6465 debugClient . configurationSequence ( ) , 
65-  debugClient . launch ( buildLauncArgs ( 'simplePrint.py' ,  false ) ) , 
66+  debugClient . launch ( buildLaunchArgs ( 'simplePrint.py' ,  false ) ) , 
6667 debugClient . waitForEvent ( 'initialized' ) , 
6768 debugClient . waitForEvent ( 'terminated' ) 
6869 ] ) ; 
6970 } ) ; 
7071 test ( 'test stderr output for Python' ,  async  ( )  =>  { 
7172 await  Promise . all ( [ 
7273 debugClient . configurationSequence ( ) , 
73-  debugClient . launch ( buildLauncArgs ( 'stdErrOutput.py' ,  false ) ) , 
74+  debugClient . launch ( buildLaunchArgs ( 'stdErrOutput.py' ,  false ) ) , 
7475 debugClient . waitForEvent ( 'initialized' ) , 
7576 debugClient . assertOutput ( 'stderr' ,  'error output' ) , 
7677 debugClient . waitForEvent ( 'terminated' ) 
@@ -79,7 +80,7 @@ suite('Run without Debugging', () => {
7980 test ( 'Test stdout output' ,  async  ( )  =>  { 
8081 await  Promise . all ( [ 
8182 debugClient . configurationSequence ( ) , 
82-  debugClient . launch ( buildLauncArgs ( 'stdOutOutput.py' ,  false ) ) , 
83+  debugClient . launch ( buildLaunchArgs ( 'stdOutOutput.py' ,  false ) ) , 
8384 debugClient . waitForEvent ( 'initialized' ) , 
8485 debugClient . assertOutput ( 'stdout' ,  'normal output' ) , 
8586 debugClient . waitForEvent ( 'terminated' ) 
@@ -102,7 +103,7 @@ suite('Run without Debugging', () => {
102103 } ) ; 
103104 await  Promise . all ( [ 
104105 debugClient . configurationSequence ( ) , 
105-  debugClient . launch ( buildLauncArgs ( 'sampleWithSleep.py' ,  false ) ) , 
106+  debugClient . launch ( buildLaunchArgs ( 'sampleWithSleep.py' ,  false ) ) , 
106107 debugClient . waitForEvent ( 'initialized' ) , 
107108 processIdOutput 
108109 ] ) ; 
0 commit comments