File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 2020import  warnings 
2121from  test  import  support 
2222from  test .support  import  _4G , bigmemtest 
23+ from  test .support  import  hashlib_helper 
2324from  test .support .import_helper  import  import_fresh_module , import_module 
2425from  test .support  import  requires_resource 
2526from  test .support  import  threading_helper 
@@ -96,16 +97,16 @@ def read_vectors(hash_name):
9697
9798
9899def  find_gil_minsize (* modules_names , default = 2048 ):
99-     gil_minsize  =  default 
100+     sizes  =  [] 
100101    for  module_name  in  modules_names :
101102        if  SKIP_SHA3  and  module_name  ==  '_sha3' :
102103            continue 
103104        try :
104105            module  =  importlib .import_module (module_name )
105106        except  ImportError :
106107            continue 
107-         gil_minsize   =   max ( gil_minsize ,  module ._GIL_MINSIZE )
108-     return  gil_minsize 
108+         sizes . append ( module ._GIL_MINSIZE )
109+     return  max ( sizes ,  default = default ) 
109110
110111
111112class  HashLibTestCase (unittest .TestCase ):
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments