
    4hh                         S r SSKrSSKrSSKJr  SSKJr  SSKJrJ	r	  \	" 5          " S S\R                  5      r\S:X  a  \R                  " 5         gg)	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                   `    \ rS rSr\R
                  R                  \SS5      rS r	S r
S rSrg)	ReindentTests   
patchcheckzreindent.pyc                 .    [        U R                  5        g )N)r   script)selfs    F/opt/python-3.13.8/usr/lib/python3.13/test/test_tools/test_reindent.pytest_noargsReindentTests.test_noargs   s    %    c                 ~    [        U R                  S5      u  pnU R                  US5        U R                  US5        g )Nz-hr   )r   r   assertEqualassertGreater)r   rcouterrs       r   	test_helpReindentTests.test_help   s6    'T:c"3$r   c                     [        SSS9n[        U R                  SU5      u  p#nU R                  US5        U R	                  US5        g )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_encoding2ReindentTests.test_reindent_file_with_bad_encoding   sD    "?>J'T?Kc"C%r    N)__name__
__module____qualname____firstlineno__ospathjoinr   r   r   r   r   __static_attributes__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>r2      sK    
  7 ! 5  &H%% &$ zMMO r   