File tree 1 file changed +4
-3
lines changed 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 20
20
import warnings
21
21
from test import support
22
22
from test .support import _4G , bigmemtest
23
+ from test .support import hashlib_helper
23
24
from test .support .import_helper import import_fresh_module , import_module
24
25
from test .support import requires_resource
25
26
from test .support import threading_helper
@@ -96,16 +97,16 @@ def read_vectors(hash_name):
96
97
97
98
98
99
def find_gil_minsize (* modules_names , default = 2048 ):
99
- gil_minsize = default
100
+ sizes = []
100
101
for module_name in modules_names :
101
102
if SKIP_SHA3 and module_name == '_sha3' :
102
103
continue
103
104
try :
104
105
module = importlib .import_module (module_name )
105
106
except ImportError :
106
107
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 )
109
110
110
111
111
112
class HashLibTestCase (unittest .TestCase ):
You can’t perform that action at this time.
0 commit comments