Current File : //usr/local/apps/python3/lib/python3.11/test/__pycache__/test_largefile.cpython-311.opt-2.pyc |
�
�Ke`( � �� � d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlmZm Z d dlm
Z
d dlmZ d dlm
Z
mZ d dlZd dlZdZe
dz Z G d� d � � Z G d
� de� � Zd� Z G d
� deej � � Z ej ee d� � d� � G d� deej � � � � Zd� Z G d� deej � � Z G d� deej � � Zd� Ze dk r ej! � � dS dS )� N)�requires�
bigmemtest)�
SHORT_TIMEOUT)�
socket_helper)�TESTFN�unlinkl y* �2c �* � e Zd Zd� Zed� � � ZdS )�
LargeFileTestc �� � t j � t � � rd}nd}| � t |� � 5 }t j |� � � � � t j }|t dz k r d d d � � d S |dk r|�
d� � |� d� � |� t � � |�
d� � |� � � | �
t j |� � � � � t j t dz � � d d d � � d S # 1 swxY w Y d S )N�r+bzw+b� r � z� a)�os�path�existsr �open�fstat�fileno�stat�ST_SIZE�size�write�seek�flush�assertEqual)�self�mode�f�current_sizes �=/usr/local/apps/python3/lib/python3.11/test/test_largefile.py�setUpzLargeFileTest.setUp s� � �
�7�>�>�&�!�!� ��D�D��D�
�Y�Y�v�t�
$�
$� I���8�A�H�H�J�J�/�/���=�L��t�A�v�%�%�� I� I� I� I� I� I� I� I�
�q� � �����
�
�
�
�F�F�1�I�I�I�
�F�F�4�L�L�L�
�G�G�D�M�M�M�
�G�G�I�I�I����R�X�a�h�h�j�j�1�1�$�,�?��a��H�H�H� I� I� I� I� I� I� I� I� I� I� I� I���� I� I� I� I� I� Is �AE*�CE*�*E.�1E.c � � | � t d� � 5 d d d � � n# 1 swxY w Y t j t � � t j dk s| � d� � �t
t � � d S )N�wbr z0File was not truncated by opening with mode "wb")r r r r r �failureExceptionr �TESTFN2)�clss r"