[Bugfix] TypeError: 'NoneType' object is not callable (#27410)

Signed-off-by: Marcin Ostrowski <marcinx.ostrowski@intel.com>
This commit is contained in:
Marcin Ostrowski 2025-11-14 22:13:53 +01:00 committed by GitHub
parent f08eab2acc
commit 0de4f217ab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -55,7 +55,7 @@ pytestmark = pytest.mark.cpu_test
def _auto_init_hash_fn(request):
hash_fn: Callable
if "hash_fn" in request.fixturenames:
hash_fn = init_none_hash(request.getfixturevalue("hash_fn"))
hash_fn = request.getfixturevalue("hash_fn")
else:
hash_fn = sha256
init_none_hash(hash_fn)