Your IP : 216.73.216.85
�
�#�jj � �8 � d Z ddlZddlZddlmZ G d� d� Zy)z$Tests common to tarfile and zipfile.� N)� os_helperc �" � e Zd Zd� Zdd�Zd� Zd� Zd� Zd� Zd� Z d� Z
d � Zd
� Ze
j d� � Ze
j d� � Ze
j d
� � Ze
j d� � Ze
j d� � Ze
j d� � Zy)�OverwriteTestsc � � t j | j � | j t j
| j � y �N)�os�makedirs�testdir�
addCleanupr �rmtree)�selfs �:/opt/alt/python312/lib64/python3.12/test/archiver_tests.py�setUpzOverwriteTests.setUp
s* � �
���D�L�L�!���� �(�(�$�,�,�7� c �h � t |d� 5 }|j |� d d d � y # 1 sw Y y xY w)N�wb)�open�write)r
�path�content�fs r �create_filezOverwriteTests.create_file s&