
    dafY              
       "   d Z ddl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
d        e	dd      5  ddlZddd        ej                          ej                  ej                  j!                  d      d	       ej                  ej                  d
k(  xr ej"                  d       ej$                  d       ej                   ej&                         d       G d dej(                                                           Zy# 1 sw Y   xY w)z)Sanity-check tests for the "freeze" tool.    N)support)	os_helper)imports_under_toolskip_if_missingfreezetestwinznot supported on Windowsdarwinz,not supported for frameworks builds on macOSz#not all buildbots have enough spaceztest is too slow with PGOc                   <    e Zd Z ej                  d      d        Zy)
TestFreezecpuc                 0   t        j                  d      }t        j                         5 }t	        j
                  ||      \  }}}t	        j                  |||      }t	        j                  |      }d d d        | j                  d       y # 1 sw Y   xY w)Nz\
            import sys
            print('running...')
            sys.exit(0)
            z
running...)	textwrapdedentr   temp_dirhelperpreparer   runassertEqual)selfscriptoutdir
scriptfilepython
executabletexts          6/root/Python-3.12.4/Lib/test/test_tools/test_freeze.pytest_freeze_simple_scriptz$TestFreeze.test_freeze_simple_script   s     " 
 ! 	*V)/)G&FJvz6BJ::j)D	* 	|,		* 	*s   ABBN)__name__
__module____qualname__r   requires_resourcer        r   r   r      s#     Wu%
- &
-r$   r   )__doc__sysr   unittestr   r   test.supportr   test.test_toolsr   r   r   r   requires_zlibskipIfplatform
startswith
_frameworkskip_if_buildbotcheck_cflags_pgoTestCaser   r#   r$   r   <module>r2      s    / 
    " ?  &)  ((/1KL)<cnn68?@ )))+,.-"" -. A8 M - s   DD