| Server IP : 118.27.122.248 / Your IP : 216.73.216.153 Web Server : Apache System : Linux web0264.sh.tyo1 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64 User : c9415830 ( 11735) PHP Version : 8.4.17 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/alt/python27/lib64/python2.7/test/ |
Upload File : |
�
�q2_c @ s
d Z d d l m Z d d l Z d d l Z d d l Z d d l Z d d l m Z m Z m
Z
m Z m Z d d l
Z
d d l Z y( d d l Z e j e j e j � Z Wn e e f k
r� n Xd Z d e j f d � � YZ d � Z e d k re � n d S(
s9 Test largefile support on system where this makes sense.
i����( t print_functionN( t run_unittestt TESTFNt verboset requirest unlinkI �� t
LargeFileTestc B sD e Z d Z d � Z d � Z d � Z d � Z d � Z d � Z RS( s@ Test that each file function works as expected for a large
(i.e. > 2GB, do we have to check > 4GB) files.
NOTE: the order of execution of the test methods is important! test_seek
must run first to create the test file. File cleanup must also be handled
outside the test instances because of this.
c C s� t r t d � n | j t d � �� } | j d � | j d � | j t � | j d � | j � t ry t d � n | j t j
| j � � t j
t d � Wd QXd S( Ns3 create large file via seek (may be sparse file) ...t wbt zi t as check file size with os.fstati ( R t printt openR t writet seekt sizet flusht assertEqualt ost fstatt filenot statt ST_SIZE( t selft f( ( s8 /opt/alt/python27/lib64/python2.7/test/test_largefile.pyt test_seek&