
    daf                         d Z ddlZddlZddlmZ ddlmZ ddlmZm	Z	  e	         G d dej                        Zedk(  r ej                          yy)	zTests 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    e Zd Zej                  j                  edd      Zd Zd Z	d Z
y)ReindentTests
patchcheckzreindent.pyc                 .    t        | j                         y )N)r   script)selfs    8/root/Python-3.12.4/Lib/test/test_tools/test_reindent.pytest_noargszReindentTests.test_noargs   s    %    c                     t        | j                  d      \  }}}| j                  |d       | j                  |d       y )Nz-hr   )r   r   assertEqualassertGreater)r   rcouterrs       r   	test_helpzReindentTests.test_help   s8    'T:Cc"3$r   c                     t        dd      }t        | j                  d|      \  }}}| j                  |d       | j	                  |d       y )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   sF    "?>J'T?KCc"C%r   N)__name__
__module____qualname__ospathjoinr   r   r   r   r    r   r   r   r      s'    WW\\(L-@F&%
&r   r   __main__)__doc__r    unittesttest.support.script_helperr   test.supportr   test.test_toolsr   r   TestCaser   r   mainr#   r   r   <module>r,      sM    
  7 ! 5  &H%% &$ zHMMO r   