관리-도구
편집 파일: harness.cpython-311.pyc
� �܋f� � �t � d dl Z d dlZd dlZd dlmZ g d�Zej Zej Z G d� dej � � ZdS )� N)�checker)�TestCase�skip�skipIfc � � e Zd ZdZd� ZdS )r Fc �x � t j t j |� � � � }t j t j |� � � � }|� d� � r"|j d }|� d� � t j |f|| j d�|��}d� |j D � � }t |� � }|� d� �� � |� d� �� � | � ||d� ||d � d � |j D � � � � � � � � |S )N� is_segmentr )�file_tokens�withDoctestc �, � g | ]}t |� � ��S � )�type��.0�os �f/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/pyflakes/test/harness.py� <listcomp>z#TestCase.flakes.<locals>.<listcomp> s � �/�/�/�q�4��7�7�/�/�/� c � � | j S �N��__name__��ts r �<lambda>z!TestCase.flakes.<locals>.<lambda> s � �1�:� r )�keyc � � | j S r r r s r r z!TestCase.flakes.<locals>.<lambda> s � �1�:� r z0for input: {} expected outputs: {!r} but got: {}� c �, � g | ]}t |� � ��S r )�strr s r r z#TestCase.flakes.<locals>.<listcomp>$ s � �/K�/K�/K�1��A���/K�/K�/Kr )�ast�parse�textwrap�dedentr �make_tokens�get�body�pop�Checkerr �messages�list�sort�assertEqual�format�join)�self�input�expectedOutputs�kw�treer �w�outputss r �flakeszTestCase.flakes sF � ��y����/�/�0�0���)�(�/�%�*@�*@�A�A�� �6�6�,��� !��9�Q�<�D��F�F�<� � � ��O�� �)�t�7G� � �KM� � �� 0�/�A�J�/�/�/����/�/�����-�-��.�.�.����!5�!5��6�6�6�����/� 4� �f�U�O�T�Y�Y�/K�/K�� �/K�/K�/K�%L�%L�M�M� O� O� O� �r N)r � __module__�__qualname__r r7 r r r r r s( � � � � � ��K�� � � � r r ) r! r# �unittest�pyflakesr �__all__r r r r r r �<module>r= s� �� � � � � ���� ���� � � � � � � (� (� (���}�� ���� � � � �x� � � � � � r