Sindbad~EG File Manager
�
SԚg� � � � d Z ddlZddlZddlmZ ddlmZ dZ G d� dej ej � � Z
edk r ej � � dS dS ) zTests for distutils.text_file.� N)�TextFile)�supportzE# test file
line 3 \
# intervening comment
continues on next line
c � � e Zd Zd� ZdS )�TextFileTestCasec � � � g d�}g d�}g d�}ddg}dg}dg}� fd�}� � � � }t j � |d � � } t | d
� � }
|
� t � � |
� � � n# |
� � � w xY wt | dddd�� � } |d
d||� � |� � � n# |� � � w xY wt | d
ddd�� � } |dd||� � |� � � n# |� � � w xY wt | dd
dd�� � } |dd||� � |� � � n# |� � � w xY wt | � � } |dd||� � |� � � n# |� � � w xY wt | d
d
d
d
�� � } |dd||� � |� � � n# |� � � w xY wt | d
d
d
d
d
�� � } |dd||� � |� � � d S # |� � � w xY w)N)�# test file
�
� line 3 \
�# intervening comment
� continues on next line
)r r
r )r r
r r zline 3 \z continues on next linezline 3 continues on next linezline 3 continues on next linec �\ �� |� � � }�� ||� � d S )N)� readlines�assertEqual)�count�description�file�expected_result�result�selfs ��;/usr/local/lib/python3.11/distutils/tests/test_text_file.py�
test_inputz/TextFileTestCase.test_class.<locals>.test_input1 s. �� ��^�^�%�%�F����V�_�5�5�5�5�5� ztest.txt�wr )�strip_comments�skip_blanks� lstrip_ws� rstrip_ws� z
no processing� zstrip comments� zstrip blanks� zdefault processing)r r �
join_linesr � zjoin lines without collapsing)r r r"