File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -337,6 +337,10 @@ def test_err_writeunraisable(self):
337337            self .assertIsNone (cm .unraisable .err_msg )
338338            self .assertIsNone (cm .unraisable .object )
339339
340+     @force_not_colorized  
341+     def  test_err_writeunraisable_lines (self ):
342+         writeunraisable  =  _testcapi .err_writeunraisable 
343+ 
340344        with  (support .swap_attr (sys , 'unraisablehook' , None ),
341345              support .captured_stderr () as  stderr ):
342346            writeunraisable (CustomError ('oops!' ), hex )
@@ -387,6 +391,10 @@ def test_err_formatunraisable(self):
387391            self .assertIsNone (cm .unraisable .err_msg )
388392            self .assertIsNone (cm .unraisable .object )
389393
394+     @force_not_colorized  
395+     def  test_err_formatunraisable_lines (self ):
396+         formatunraisable  =  _testcapi .err_formatunraisable 
397+ 
390398        with  (support .swap_attr (sys , 'unraisablehook' , None ),
391399              support .captured_stderr () as  stderr ):
392400            formatunraisable (CustomError ('oops!' ), b'Error in %R' , [])
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments