File: D:/Python311/Lib/test/test_tools/__pycache__/test_pindent.cpython-311.opt-1.pyc
�
��Vc�# � �� � d Z ddlZddlZddlZddlZddlZddlmZ ddlm Z ddl
mZ ddlm
Z
mZ e� � G d� dej � � Zed k r ej � � dS dS )
z4Tests for the pindent script in the Tools directory.� N)�support)� os_helper)�assert_python_ok)�
scriptsdir�skip_if_missingc � � e Zd Zej � ed� � Zd� Zd� Z d� Z
d� Zd� Zd� Z
d� Zd � Zd
� Zd� Zd� Zd
S )�PindentTestsz
pindent.pyc � � t |� � 5 }t |� � 5 }| � |� � � |� � � � � d d d � � n# 1 swxY w Y d d d � � d S # 1 swxY w Y d S �N)�open�assertEqual� readlines)�self�fn1�fn2�f1�f2s �0D:\Python311\Lib\test\test_tools\test_pindent.py�assertFileEqualzPindentTests.assertFileEqual s� � �
�#�Y�Y� =�"�d�3�i�i� =�2����R�\�\�^�^�R�\�\�^�^�<�<�<� =� =� =� =� =� =� =� =� =� =� =���� =� =� =� =� =� =� =� =� =� =� =� =� =� =� =� =���� =� =� =� =� =� =s4 �A?�;A'�A?�'A+ �+A?�.A+ �/A?�?B�Bc � � t j t j | j f|z t j t j d�� � 5 }|� |� � \ }}d d d � � n# 1 swxY w Y | � |� � |S )NT)�stdin�stdout�universal_newlines)�
subprocess�Popen�sys�
executable�script�PIPE�communicate�assertIsNone)r �source�args�proc�out�errs r �pindentzPindentTests.pindent s� � �
�
�����-��4� �o�j�o�#'�)� )� )� 0� -1��'�'��/�/�H�C�� 0� 0� 0� 0� 0� 0� 0� 0� 0� 0� 0���� 0� 0� 0� 0�
���#�����
s �A&�&A*�-A*c �j � d� d� |� � � D � � � � dz S )N�
c 3 �>