shell bypass 403
�
?��cc @ 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( ( s: /usr/local/python-2.7/lib/python2.7/test/test_largefile.pyt test_seek&