config root man

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
Upload File :
Current File : //compat/linux/proc/self/root/usr/local/lib/python2.5/test/test_gzip.pyo

³ò
h”Rc@s™dZddkZddklZddkZddkZddkZdZdZdei	fd„ƒYZ
dd„Ze
d	joed
eƒndS(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 */
tTestGzipcBsteZeiZd„Zd„Zd„Zd„Zd„Z	d„Z
d„Zd„Zd„Z
d	„Zd
„ZRS(cCsdS(N((tself((s*/usr/local/lib/python2.5/test/test_gzip.pytsetUpscCs1yti|iƒWntij
onXdS(N(tostunlinktfilenameterror(R((s*/usr/local/lib/python2.5/test/test_gzip.pyttearDownscCsoti|idƒ}|itdƒ|iƒ|iƒttdƒoti	|iƒƒn|i
ƒdS(Ntwbi2tfsync(tgziptGzipFileRtwritetdata1tflushtfilenothasattrRR
tclose(Rtf((s*/usr/local/lib/python2.5/test/test_gzip.pyt
test_write%s

cCsM|iƒti|idƒ}|iƒ}|iƒ|i|tdƒdS(Ntri2(RRRRtreadRtassertEqualR(RRtd((s*/usr/local/lib/python2.5/test/test_gzip.pyt	test_read/s


cCs…|iƒti|idƒ}|itdƒ|iƒti|idƒ}|iƒ}|iƒ|i|t	dtdƒdS(Ntabitrbi2(
RRRRR
tdata2RRRR(RRR((s*/usr/local/lib/python2.5/test/test_gzip.pyttest_append5s


cCsàti|iddƒ}|idƒ|iƒxFtddƒD]5}ti|iddƒ}|idƒ|iƒq?Wti|idƒ}d}x(|id	ƒ}||7}|pPq–q–|iƒ|i|dd
ƒdS(NR	i	taiiÈRRti iÉ(RtopenRR
RtrangeRtassertEquals(RRtitzgfiletcontentstztxt((s*/usr/local/lib/python2.5/test/test_gzip.pyttest_many_append=s"




cCsŽ|iƒti|idƒ}d}xX|i|ƒ}|djo|djoPn|it|ƒ|jƒ|dd}q(|iƒdS(NRiRii2(RRRRtreadlinetassert_tlenR(RRtline_lengthtL((s*/usr/local/lib/python2.5/test/test_gzip.pyt
test_readlineTs
cCs|iƒti|idƒ}|iƒ}|iƒti|idƒ}x$|idƒ}|gjoPqMqM|iƒdS(NRi–(RRRRt	readlinesR(RRR,((s*/usr/local/lib/python2.5/test/test_gzip.pyttest_readlinesas


cCsÆ|iƒti|iƒ}x™|iƒ}|iƒ}|pPn|iƒ}|i|ƒt|ƒdjo
d}n
t|ƒ}|i|ƒ}|i	|| |ƒ|i|ƒq|i
ƒdS(Ni
(RRRRttellR(tseekR*RRR(RRtoldpostline1tnewpostamounttline2((s*/usr/local/lib/python2.5/test/test_gzip.pyttest_seek_reados 


cCsZti|idƒ}x4tdddƒD] }|i|ƒ|idƒq(W|iƒdS(NtwiiisGZ
(RRRR!R1R
R(RRtpos((s*/usr/local/lib/python2.5/test/test_gzip.pyttest_seek_writeƒs
cCsC|iƒti|idƒ}|i|iidƒ|iƒdS(NRR(RRRRRt	myfileobjtmodeR(RR((s*/usr/local/lib/python2.5/test/test_gzip.pyt	test_mode‹s
(t__name__t
__module__RtTESTFNRRRRRRR'R-R/R7R:R=(((s*/usr/local/lib/python2.5/test/test_gzip.pyRs				
				
			cCstitƒdS(N(Rtrun_unittestR(tverbose((s*/usr/local/lib/python2.5/test/test_gzip.pyt	test_main‘st__main__RB(t__doc__tunittestttestRtsysRRRRtTestCaseRtNoneRCR>tTrue(((s*/usr/local/lib/python2.5/test/test_gzip.pys<module>sy


Man Man