File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -227,11 +227,17 @@ def _runtest(self, test_name: TestName) -> MultiprocessResult:
227227            match_tests  =  None 
228228        err_msg  =  None 
229229
230+         print ("main process is_emscripten:" , support .is_emscripten )
231+         print ("main process is_wasi:" , support .is_wasi )
232+         print ("main process JSON_FILE_USE_FILENAME:" , JSON_FILE_USE_FILENAME )
233+ 
230234        stdout_file  =  tempfile .TemporaryFile ('w+' , encoding = encoding )
231235        if  JSON_FILE_USE_FILENAME :
232236            json_tmpfile  =  tempfile .NamedTemporaryFile ('w+' , encoding = 'utf8' )
237+             print ("main process: create NamedTemporaryFile" )
233238        else :
234239            json_tmpfile  =  tempfile .TemporaryFile ('w+' , encoding = 'utf8' )
240+             print ("main process: create TemporaryFile" )
235241
236242        # gh-94026: Write stdout+stderr to a tempfile as workaround for 
237243        # non-blocking pipes on Emscripten with NodeJS. 
@@ -243,6 +249,8 @@ def _runtest(self, test_name: TestName) -> MultiprocessResult:
243249                json_file  =  json_tmpfile .fileno ()
244250                if  MS_WINDOWS :
245251                    json_file  =  msvcrt .get_osfhandle (json_file )
252+             print ("main process json_type file:" , type (json_file ))
253+             print ("main process json_type:" , json_file )
246254
247255            kwargs  =  {}
248256            if  match_tests :
Original file line number Diff line number Diff line change @@ -86,6 +86,8 @@ def worker_process(worker_json: StrJSON) -> NoReturn:
8686    # On Windows, it's a handle. 
8787    # On Emscripten/WASI, it's a filename. 
8888    json_file : JsonFileType  =  runtests .json_file 
89+     print ("worker: json_file type:" , type (json_file ))
90+     print ("worker: json_file:" , json_file )
8991
9092    if  MS_WINDOWS :
9193        import  msvcrt 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments