관리-도구
편집 파일: test_utils.cpython-311.pyc
� �܋f� � � � d Z ddlmZ ddlZddlZddlZddlZddlmZ ddl Z ddl mZmZm Z ddd �Zdd�Zej d� � � Zd� ZdS )z@Utility functions for test code that uses astroid ASTs as input.� )�annotationsN)�Callable)�manager�nodes� transforms�0.0.0�4.0.0�minver�str�maxver�returnr c �R � ���� dd�} |� � � � |�� � ����� fd�}|S )zSCompare version of python interpreter to the given one and skips the test if older.�python_versionr r �tuple[int, ...]c � � t d� | � d� � D � � � � S # t $ r}| � d�}t |� � |�d }~ww xY w)Nc 3 �4 K � | ]}t |� � V � �d S �N)�int��.0�vs �c/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/astroid/test_utils.py� <genexpr>z1require_version.<locals>.parse.<locals>.<genexpr> s( � � � �C�C�A��Q���C�C�C�C�C�C� �.z. is not a correct version : should be X.Y[.Z].)�tuple�split� ValueError)r �e�msgs r �parsezrequire_version.<locals>.parse sm � � )��C�C��)=�)=�c�)B�)B�C�C�C�C�C�C��� )� )� )�#�S�S�S�C��S�/�/�q�(����� )���s �+. � A�A � Ac �� ���� t j d d� ���cxk r�k rn n| S d� d� t j D � � � � �t j | � � ������fd�� � }|S )N� r c 3 �4 K � | ]}t |� � V � �d S r )r r s r r zArequire_version.<locals>.check_require_version.<locals>.<genexpr>&