Current Path : /compat/linux/proc/self/root/usr/local/lib/python2.5/test/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //compat/linux/proc/self/root/usr/local/lib/python2.5/test/test_gzip.pyo |
³ò h”Rc @ s™ d Z d d k Z d d k l Z d d k Z d d k Z d d k Z d Z d Z d e i f d „ ƒ YZ d d „ Z e d j o e d e ƒ n d S( s! Test script for the gzip module. iÿÿÿÿN( t test_supportsy int length=DEFAULTALLOC, err = Z_OK; PyObject *RetVal; int flushmode = Z_FINISH; unsigned long start_total_out; sŽ /* zlibmodule.c -- gzip-compatible data compression */ /* See http://www.gzip.org/zlib/ /* See http://www.winimage.com/zLibDll for Windows */ t TestGzipc B st e Z e i Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( c C s d S( N( ( t self( ( s* /usr/local/lib/python2.5/test/test_gzip.pyt setUp s c C s1 y t i | i ƒ Wn t i j o n Xd S( N( t ost unlinkt filenamet error( R ( ( s* /usr/local/lib/python2.5/test/test_gzip.pyt tearDown s c C so t i | i d ƒ } | i t d ƒ | i ƒ | i ƒ t t d ƒ o t i | i ƒ ƒ n | i ƒ d S( Nt wbi2 t fsync( t gzipt GzipFileR t writet data1t flusht filenot hasattrR R t close( R t f( ( s* /usr/local/lib/python2.5/test/test_gzip.pyt test_write% s c C sM | i ƒ t i | i d ƒ } | i ƒ } | i ƒ | i | t d ƒ d S( Nt ri2 ( R R R R t readR t assertEqualR ( R R t d( ( s* /usr/local/lib/python2.5/test/test_gzip.pyt test_read/ s c C s… | i ƒ t i | i d ƒ } | i t d ƒ | i ƒ t i | i d ƒ } | i ƒ } | i ƒ | i | t d t d ƒ d S( Nt abi t rbi2 ( R R R R R t data2R R R R ( R R R ( ( s* /usr/local/lib/python2.5/test/test_gzip.pyt test_append5 s c C sà t i | i d d ƒ } | i d ƒ | i ƒ xF t d d ƒ D]5 } t i | i d d ƒ } | i d ƒ | i ƒ q? Wt i | i d ƒ } d } x( | i d ƒ } | | 7} | p Pq– q– | i ƒ | i | d d ƒ d S( NR i t ai iÈ R R t i iÉ ( R t openR R R t rangeR t assertEquals( R R t it zgfilet contentst ztxt( ( s* /usr/local/lib/python2.5/test/test_gzip.pyt test_many_append= s"