Your IP : 216.73.216.213


Current Path : /opt/alt/python311/lib64/python3.11/test/test_tools/__pycache__/
Upload File :
Current File : //opt/alt/python311/lib64/python3.11/test/test_tools/__pycache__/test_reindent.cpython-311.pyc

�

�0�i���dZddlZddlZddlmZddlmZddlmZm	Z	e	��Gd�dej
��Zedkrej
��dSdS)	z�Tests for scripts in the Tools directory.

This file contains regression tests for some of the scripts found in the
Tools directory of a Python checkout or tarball, such as reindent.py.
�N)�assert_python_ok)�findfile)�
scriptsdir�skip_if_missingc�V�eZdZej�ed��Zd�Zd�Z	d�Z
dS)�
ReindentTestszreindent.pyc�.�t|j��dS)N)r�script)�selfs �D/opt/alt/python311/lib64/python3.11/test/test_tools/test_reindent.py�test_noargszReindentTests.test_noargss�����%�%�%�%�%�c��t|jd��\}}}|�|d��|�|d��dS)Nz-hr)rr
�assertEqual�
assertGreater)r�rc�out�errs    r�	test_helpzReindentTests.test_helpsK��'���T�:�:���C������c�"�"�"����3��$�$�$�$�$rc��tdd���}t|jd|��\}}}|�|d��|�|d��dS)Nz
bad_coding.py�tokenizedata)�subdirz-rr)rrr
r�assertNotEqual)r�bad_coding_pathrrrs     r�$test_reindent_file_with_bad_encodingz2ReindentTests.test_reindent_file_with_bad_encodings_��"�?�>�J�J�J��'���T�?�K�K���C������c�"�"�"����C��%�%�%�%�%rN)�__name__�
__module__�__qualname__�os�path�joinrr
r
rr�rrrrsV������
�W�\�\�*�m�
4�
4�F�&�&�&�%�%�%�
&�&�&�&�&rr�__main__)�__doc__r�unittest�test.support.script_helperr�test.supportr�test.test_toolsrr�TestCaserr�mainr"rr�<module>r+s�����
�	�	�	�����7�7�7�7�7�7�!�!�!�!�!�!�7�7�7�7�7�7�7�7������&�&�&�&�&�H�%�&�&�&�$�z����H�M�O�O�O�O�O��r