Current File : //usr/local/apps/python3/lib/python3.11/test/__pycache__/test_zipapp.cpython-311.opt-2.pyc |
�
�Ke�? � �� � d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlZd dlm Z d dlm
Z
d dlmZ G d� dej
� � Z G d� dej
� � Zed k r ej � � dS dS )
� N)�
requires_zlib)� os_helper)�patchc �f � e Zd Z d� Zd� Zd� Zd� Zd� Zd� Zd� Z e
� � d� � � Zd � Zd
� Z
d� Zd� Zd
� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Z ej ej dk d� � e j! d� � � � � Z" ej ej dk d� � d� � � Z#dS )�
ZipAppTestc � � t j � � }| � |j � � t j |j � � | _ d S �N��tempfile�TemporaryDirectory�
addCleanup�cleanup�pathlib�Path�name�tmpdir��selfr s �:/usr/local/apps/python3/lib/python3.11/test/test_zipapp.py�setUpzZipAppTest.setUp �; � ��,�.�.�������'�'�'��l�6�;�/�/����� c �0 � | j dz }|� � � |dz � � � | j dz }t j t |� � t |� � � � | � |� � � � � d S �N�source�__main__.py�
source.pyz�r �mkdir�touch�zipapp�create_archive�str�
assertTrue�is_file�r r �targets r �test_create_archivezZipAppTest.test_create_archive s � ���x�'�������� �-� �&�&�(�(�(���|�+����c�&�k�k�3�v�;�;�7�7�7�������(�(�)�)�)�)�)r c � � | j dz }|� � � |dz � � � | j dz }t j ||� � | � |� � � � � d S r )r r r r! r"