File: D:/Python311/Lib/test/support/__pycache__/hashlib_helper.cpython-311.opt-2.pyc
�
��Vc� � �L � d dl Z d dlZd dlZ d dlZn
# e$ r dZY nw xY wdd�ZdS )� NTc � � ���� �� ��fd���S )Nc �B �� � t � t � � re� j � d� � }|�!� fd�}� j dz |_ � j |_ n|j }t �|� � � � }|� _ � S t j
� � � �� ��fd�� � }|S )N�
setUpClassc �L �� t �| � � � � � d S )N)�superr )�cls�
func_or_classs ��/D:\Python311\Lib\test\support\hashlib_helper.pyr z:requires_hashdigest.<locals>.decorator.<locals>.setUpClass s% �� ��-��-�-�8�8�:�:�:�:�:� z.setUpClassc �� �� �rt �t j ���� � nt j ���� � n&# t $ r t j d�� d�� � �w xY w �| i |��S )N)�usedforsecurityz
hash digest 'z' is not available.)�_hashlib�new�hashlib�
ValueError�unittest�SkipTest)�args�kwargs�
digestnamer �opensslr
s ����r
�wrapperz7requires_hashdigest.<locals>.decorator.<locals>.wrapper&