File: D:/Python311/Lib/test/test_tools/__pycache__/test_freeze.cpython-311.pyc
�
��Vc� � � � d Z ddlZddlZddlZddlmZ ddlmZ ddlm Z m
Z
e
d� � e dd� � 5 ddlZddd� � n# 1 swxY w Y ej
� � ej ej � d� � d � � ej d
� � G d� dej � � � � � � � � ZdS )
z)Sanity-check tests for the "freeze" tool.� N)�support)� os_helper)�imports_under_tool�skip_if_missing�freeze�test�winznot supported on Windowsz#not all buildbots have enough spacec � � e Zd Zd� ZdS )�
TestFreezec �6 � t j d� � }t j � � 5 }t j ||� � \ }}}t j |||� � }t j |� � }d d d � � n# 1 swxY w Y | � |d� � d S )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 �/D:\Python311\Lib\test\test_tools\test_freeze.py�test_freeze_simple_scriptz$TestFreeze.test_freeze_simple_script s� � ��� "� � ��
�
�
!�
!� *�V�)/����)G�)G�&�F�J����v�z�6�B�B�J��:�j�)�)�D� *� *� *� *� *� *� *� *� *� *� *���� *� *� *� *�
����|�,�,�,�,�,s �AA8�8A<�?A<N)�__name__�
__module__�__qualname__r � � r r r s# � � � � � �
-�
-�
-�
-�
-r! r )�__doc__�sysr
�unittestr r �test.supportr �test.test_toolsr r r r �
requires_zlib�skipIf�platform�
startswith�skip_if_buildbot�TestCaser r r! r �<module>r- sz �� /� /�
�
�
�
� ���� ���� � � � � � � "� "� "� "� "� "� ?� ?� ?� ?� ?� ?� ?� ?� ��� � � ����&�)�)� � ������ � � � � � � � � � ���� � � � � ����������(�(��/�/�1K�L�L����?�@�@�-� -� -� -� -��"� -� -� A�@� M�L� ��-� -� -s �A�A�A