File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -3159,18 +3159,22 @@ def test_check_hostname_idn(self, warnings_filters=True):
31593159                    s .connect ((HOST , server .port ))
31603160        with  (
31613161            ThreadedEchoServer (context = server_context , chatty = True ) as  server ,
3162-             warnings_helper .check_no_resource_warning (self )
3163-             if  warnings_filters 
3164-             else  nullcontext (),
3162+             (
3163+                 warnings_helper .check_no_resource_warning (self )
3164+                 if  warnings_filters 
3165+                 else  nullcontext ()
3166+             ),
31653167            self .assertRaises (UnicodeError ),
31663168        ):
31673169            context .wrap_socket (socket .socket (), server_hostname = '.pythontest.net' )
31683170
31693171        with  (
31703172            ThreadedEchoServer (context = server_context , chatty = True ) as  server ,
3171-             warnings_helper .check_no_resource_warning (self )
3172-             if  warnings_filters 
3173-             else  nullcontext (),
3173+             (
3174+                 warnings_helper .check_no_resource_warning (self )
3175+                 if  warnings_filters 
3176+                 else  nullcontext ()
3177+             ),
31743178            self .assertRaises (UnicodeDecodeError ),
31753179        ):
31763180            context .wrap_socket (
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments