%PDF- %PDF-
Direktori : /usr/local/lib/python2.7/test/ |
Current File : //usr/local/lib/python2.7/test/test_largefile.pyc |
ó Nêáac @ 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/lib/python2.7/test/test_largefile.pyt test_seek&