HEX
Server: Apache
System: Linux bd12.noc223.com 4.18.0-553.121.1.lve.el8.x86_64 #1 SMP Thu Apr 30 16:40:41 UTC 2026 x86_64
User: handcraf (1693)
PHP: 8.1.28
Disabled: NONE
Upload Files
File: //opt/alt/python312/lib64/python3.12/test/test_tools/__pycache__/test_reindent.cpython-312.pyc
�

h�e���dZddlZddlZddlmZddlmZddlmZm	Z	e	�Gd�dej�Zedk(rej�yy)	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)�toolsdir�skip_if_missingc�X�eZdZejjedd�Zd�Zd�Z	d�Z
y)�
ReindentTests�
patchcheckzreindent.pyc�.�t|j�y)N)r�script)�selfs �D/opt/alt/python312/lib64/python3.12/test/test_tools/test_reindent.py�test_noargszReindentTests.test_noargss������%�c��t|jd�\}}}|j|d�|j|d�y)Nz-hr)rr�assertEqual�
assertGreater)r�rc�out�errs    r
�	test_helpzReindentTests.test_helps8��'����T�:���C������c�"����3��$rc��tdd��}t|jd|�\}}}|j|d�|j	|d�y)Nz
bad_coding.py�tokenizedata)�subdirz-rr)rrrr�assertNotEqual)r�bad_coding_pathrrrs     r
�$test_reindent_file_with_bad_encodingz2ReindentTests.test_reindent_file_with_bad_encodingsF��"�?�>�J��'����T�?�K���C������c�"����C��%rN)�__name__�
__module__�__qualname__�os�path�joinrrrrr�rr
rrs'��
�W�W�\�\�(�L�-�
@�F�&�%�
&rr�__main__)�__doc__r �unittest�test.support.script_helperr�test.supportr�test.test_toolsrr�TestCaserr�mainr#rr
�<module>r,sM���
��7�!�5���&�H�%�%�&�$�z���H�M�M�O�r