관리-도구
편집 파일: get_test_info.cpython-311.pyc
� �܋fO � �F � d dl mZ d dlmZ d dlmZmZmZ d dlmZ dd�Z d S )� )�annotations)�glob)�basename�join�splitext)�SYS_VERS_STR� input_dir�str�msg_dir�prefix�suffix�return�list[tuple[str, str]]c �� � g }t t | |dz |z � � � � D �]�}t |� � }t |� � d }|� dd� � d }|� � � r:|� � � r&t t � � t |� � k r��|� d� � rg|dd� � � � rK|dd� � � � r/t t � � t |dd� � � k r�� t t ||dz � � � � } | rtt | d � � � D ]a} | � dd� � d dd� }|� � � r't t � � t |� � k r n�bnt ||dz � � } |� || f� � ���|S ) a� Get python input examples and output messages. We use following conventions for input files and messages: for different inputs: test for python >= x.y -> input = <name>_pyxy.py test for python < x.y -> input = <name>_py_xy.py for one input and different messages: message for python >= x.y -> message = <name>_pyxy.txt lower versions -> message with highest num �*r �_py� ����_Nz*.txtT)�reverse���z.txt)r r r r �rsplit�isdigit�intr � startswith�sorted�append)r r r r �result�fname�infile�fbase�pyrestr�messages�outfile�py_rests �o/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/pylint/testutils/get_test_info.py�_get_tests_infor'