Server : LiteSpeed
System : Linux server51.dnsbootclub.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
User : nandedex ( 1060)
PHP Version : 8.1.33
Disable Function : NONE
Directory :  /opt/cppython/lib/python3.8/distutils/tests/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]


Current File : //opt/cppython/lib/python3.8/distutils/tests/__pycache__/test_text_file.cpython-38.pyc
U

@��gl
�@spdZddlZddlZddlmZddlmZddlmZdZ	Gdd�dej
ej�Zd	d
�Z
edkrlee
��dS)zTests for distutils.text_file.�N)�TextFile)�support)�run_unittestzE# test file

line 3 \
# intervening comment
  continues on next line
c@seZdZdd�ZdS)�TextFileTestCasecs�dddddg}dddg}ddddg}ddg}dg}d	g}�fd
d�}���}tj�|d�}	t|	d
�}
z|
�t�W5|
��Xt|	ddddd�}z|dd||�W5|��Xt|	ddddd�}z|dd||�W5|��Xt|	ddddd�}z|dd||�W5|��Xt|	�}z|dd||�W5|��Xt|	ddddd�}z|dd||�W5|��Xt|	dddddd�}z|dd||�W5|��XdS)Nz# test file
�
z	line 3 \
z# intervening comment
z  continues on next line
zline 3 \z  continues on next linezline 3   continues on next linezline 3 continues on next linecs|��}��||�dS�N)�	readlinesZassertEqual)�count�description�fileZexpected_result�result��self��=/opt/cppython/lib/python3.8/distutils/tests/test_text_file.py�
test_input2sz/TextFileTestCase.test_class.<locals>.test_inputztest.txt�wr)�strip_comments�skip_blanksZ	lstrip_ws�	rstrip_ws�z
no processing�zstrip comments�zstrip blanks�zdefault processing)rr�
join_linesr�zjoin lines without collapsing)rrrrZ
collapse_join�zjoin lines with collapsing)	�mkdtemp�os�path�join�open�close�write�	TEST_DATAr)rZresult1Zresult2Zresult3Zresult4Zresult5Zresult6rZtmpdir�filenameZout_fileZin_filerr
r�
test_classs�����

�
�
�

�
�zTextFileTestCase.test_classN)�__name__�
__module__�__qualname__r&rrrrrsrcCs
t�t�Sr)�unittestZ	makeSuiterrrrr�
test_suitegsr+�__main__)�__doc__rr*Zdistutils.text_filerZdistutils.testsrZtest.supportrr$ZTempdirManagerZTestCaserr+r'rrrr�<module>sX

F1le Man4ger