Current File : //usr/local/apps/python3/lib/python3.11/test/__pycache__/test_filecmp.cpython-311.opt-2.pyc |
�
�KeN) � � � d dl Z d dlZd dlZd dlZd dlZd dlmZ d dlmZ G d� dej � � Z
G d� dej � � Zedk r ej
� � dS dS ) � N)�support)� os_helperc �, � e Zd Zd� Zd� Zd� Zd� Zd� ZdS )�FileCompareTestCasec �� � t j | _ t j dz | _ t j dz | _ d}| j | j | j fD ]A}t |dd�� � 5 }|� |� � d d d � � n# 1 swxY w Y �Bt | j dd�� � 5 }|� d� � d d d � � n# 1 swxY w Y t j � � | _ d S ) Nz-samez-diff�Contents of file go here.
�w�utf-8��encodingza+zAn extra line.
)
r �TESTFN�name� name_same� name_diff�open�write�tempfile�
gettempdir�dir)�self�datar �outputs �;/usr/local/apps/python3/lib/python3.11/test/test_filecmp.py�setUpzFileCompareTestCase.setUp sW � ��$�� �"�)�G�3���"�)�G�3���,���Y�����?� #� #�D��d�C�'�2�2�2�
#�f����T�"�"�"�
#�
#�
#�
#�
#�
#�
#�
#�
#�
#�
#����
#�
#�
#�
#�� �$�.�$��
9�
9�
9� -�V��L�L�+�,�,�,� -� -� -� -� -� -� -� -� -� -� -���� -� -� -� -��&�(�(����s$ �$B�B
�
B
�)C�C�Cc � � t j | j � � t j | j � � t j | j � � d S �N)�os�unlinkr r r �r s r �tearDownzFileCompareTestCase.tearDown s>