| Server IP : 3.111.61.48 / Your IP : 216.73.216.67 Web Server : Apache System : Linux ip-10-0-5-176 6.8.0-1057-aws #60~22.04.1-Ubuntu SMP Wed May 27 08:16:59 UTC 2026 x86_64 User : ubuntu ( 1000) PHP Version : 8.2.31 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/lib/python3.10/test/__pycache__/ |
Upload File : |
o
�9jN) � @ s| d dl Z d dlZd dlZd dlZd dlZd dlmZ d dlmZ G dd� dej �Z
G dd� dej �Zedkr<e�
� dS dS ) � N)�support)� os_helperc @ s4 e Zd Zdd� Zdd� Zdd� Zdd� Zd d
� ZdS )�FileCompareTestCasec C s� t j| _t jd | _t jd | _d}| j| j| jfD ]}t|ddd��
}|�|� W d � n1 s3w Y qt| jddd��
}|�d� W d � n1 sQw Y t�� | _ 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 �output� r �(/usr/lib/python3.10/test/test_filecmp.py�setUp s ���zFileCompareTestCase.setUpc C s( t �| j� t �| j� t �| j� d S �N)�os�unlinkr r r
�r r r r �tearDown s zFileCompareTestCase.tearDownc C sl | � t�| j| j�d� | � tj| j| jdd�d� | � t�| j| j�d� | � tj| j| jdd�d� d S )NzComparing file to itself failsF��shallowz&Comparing file to identical file fails)�
assertTrue�filecmp�cmpr r r r r r �
test_matching s ����z!FileCompareTestCase.test_matchingc C s4 | � t�| j| j�d� | � t�| j| j�d� d S )Nz!Mismatched files compare as equalz#File and directory compare as equal)�assertFalser! r"