%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/lib/python3.12/test/support/__pycache__/
Upload File :
Create Path :
Current File : //usr/lib/python3.12/test/support/__pycache__/ast_helper.cpython-312.pyc

�

���f$�� �ddlZGd�d�Zy)�Nc��eZdZdZd�Zy)�ASTTestMixinz3Test mixing to have basic assertions for AST nodes.c�����j|tj��j|tj�t�f��fd�	��||�y)Nc�f��t|�t|�ur(�
jt|��dt|����t|tj�r:|j
D]*}t
|||�}t
|||�}||us�"�||��,yt|t�r!	t||d��D]\}}�||��y||k7r�
j|�d|���yy#t$rEt|�}t|�}	||	kDrd}
||	z
}nd}
|	|z
}|
�d|�d�}�
j|�d�wxYw)	Nz is not T)�strict�First�Secondz list contains z additional elements.z != )�type�fail�
isinstance�ast�AST�_fields�getattr�list�zip�
ValueError�len�failureException)�a�b�missing�field�value1�value2�node1�node2�len1�len2�what�diff�msg�self�traverse_compares             ���./usr/lib/python3.12/test/support/ast_helper.pyr$z5ASTTestMixin.assertASTEqual.<locals>.traverse_comparesK����A�w�d�1�g�%��	�	�T�!�W�K�x��Q��{�;�<��!�S�W�W�%��Y�Y�9�E�$�Q��w�7�F�$�Q��w�7�F��V�+�(���8�
9��A�t�$�?�(+�A�q��(>�7���u�(���6�7��a���	�	�Q�E��a�U�+�,���"�?��q�6�D��q�6�D��d�{�&��#�d�{��'��#�d�{��!�F�/�$��7L�M�C��/�/��4�$�>�?�s
�%C"�"AD0)�assertIsInstancer
r�object)r#�ast1�ast2r$s`  @r%�assertASTEqualzASTTestMixin.assertASTEqualsC������d�C�G�G�,����d�C�G�G�,�
,2�8�	-�:	��t�$�N)�__name__�
__module__�__qualname__�__doc__r*�r+r%rrs
��=�%%r+r)r
rr0r+r%�<module>r1s��
�(%�(%r+

Zerion Mini Shell 1.0