Your IP : 216.73.216.213
�
�0�i � � � d Z ddlZddlZddlmZ ddlmZ ddlmZm Z e � � G d� dej
� � Zedk r ej
� � dS dS ) 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 � e Zd Zej � ed� � Zd� Zd� Z d� Z
dS )�
ReindentTestszreindent.pyc �. � t | j � � d S )N)r �script)�selfs �D/opt/alt/python311/lib64/python3.11/test/test_tools/test_reindent.py�test_noargszReindentTests.test_noargs s � ����%�%�%�%�%� c � � t | j d� � \ }}}| � |d� � | � |d� � d S )Nz-hr )r r
�assertEqual�
assertGreater)r �rc�out�errs r � test_helpzReindentTests.test_help sK � �'���T�:�:���C������c�"�"�"����3��$�$�$�$�$r c � � t dd�� � }t | j d|� � \ }}}| � |d� � | � |d� � d S )Nz
bad_coding.py�tokenizedata)�subdirz-rr )r r r
r �assertNotEqual)r �bad_coding_pathr r r s r �$test_reindent_file_with_bad_encodingz2ReindentTests.test_reindent_file_with_bad_encoding s_ � �"�?�>�J�J�J��'���T�?�K�K���C������c�"�"�"����C��%�%�%�%�%r N)�__name__�
__module__�__qualname__�os�path�joinr r
r
r r � r r r r sV � � � � � �
�W�\�\�*�m�
4�
4�F�&� &� &�%� %� %�
&� &� &� &� &r r �__main__)�__doc__r �unittest�test.support.script_helperr �test.supportr �test.test_toolsr r �TestCaser r �mainr"