%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/local/lib/python2.7/test/
Upload File :
Create Path :
Current File : //usr/local/lib/python2.7/test/test_tempfile.pyc


Nac@sddlZddlZddlZddlZddlZddlZddlZddlZddlZddl	Z	ddl
Z
ddlmZ
ejddedddeeedrddlZd	Znd
ZejejkZeedZejd4krdZndZde
jfdYZgZdefdYZejedefdYZejedefdYZ eje defdYZ!eje!defdYZ"eje"e	j#dZ$dZ%dd5dYZ&d e&efd!YZ'eje'd"efd#YZ(eje(d$efd%YZ)eje)d&efd'YZ*eje*d(e&efd)YZ+eje+d*efd+YZ,eje,d,efd-YZ-eje-d.efd/YZ.eje.d0efd1YZ/ej0ej1k	rneje/nd2Z2ed3kre2ndS(6iN(ttest_supporttignoretcategorytmessagetmktemptmoduletstatiitspawnltopenbsd3topenbsd4i0idtTCcBs,eZejdZddZdZRS(s[a-zA-Z0-9_-]{6}$cCsA|dkrtj}n|jd||d|dfdS(Ns%s raised %s: %sii(tNonetsystexc_infotfail(tselftwhattei((s./usr/local/lib/python2.7/test/test_tempfile.pytfailOnException-sc	Cstjj|\}}|t| }|t|t|}|jtjj|tjj|d||f|j||d||f|j||d||f|t|t|t|!}|j|jj|d|dS(Nsfile '%s' not in directory '%s's"file '%s' does not begin with '%s's file '%s' does not end with '%s's6random string '%s' does not match /^[a-zA-Z0-9_-]{6}$/(	tostpathtsplittlentassertEqualtabspatht
assertTruet	str_checktmatch(	Rtnametdirtpretsuftndirtnbasetnpretnsuf((s./usr/local/lib/python2.7/test/test_tempfile.pyt	nameCheck2s$#N(t__name__t
__module__tretcompileRRRR$(((s./usr/local/lib/python2.7/test/test_tempfile.pyR
)sttest_exportscBseZdZRS(cCstj}idd6dd6dd6dd6dd6dd6dd6dd	6dd
6dd6dd6}g}x:|D]2}|d
dkri||kri|j|qiqiW|jt|d
kd|dS(NitNamedTemporaryFilet
TemporaryFiletmkstemptmkdtempRtTMP_MAXt
gettempprefixt
gettempdirttempdirttemplatetSpooledTemporaryFileit_sunexpected keys: %s(ttempfilet__dict__tappendRR(Rtdicttexpectedtunexptkey((s./usr/local/lib/python2.7/test/test_tempfile.pyR)Gs&	

(R%R&R)(((s./usr/local/lib/python2.7/test/test_tempfile.pyR)Fsttest__RandomNameSequencecBsVeZdZdZdZdZdZeje	e
dddZRS(s6Test the internal iterator object _RandomNameSequence.cCstj|_dS(N(R5t_RandomNameSequencetr(R((s./usr/local/lib/python2.7/test/test_tempfile.pytsetUpfscCs)|jj}|j|ddddS(Nt(R>tnextR$(Rts((s./usr/local/lib/python2.7/test/test_tempfile.pyttest_get_six_char_striscCsfi}|j}xPttD]B}|j}|j|ddd|j||d||<qWdS(NR@i(R>txranget
TEST_FILESRAR$tassertNotIn(RR8R>tiRB((s./usr/local/lib/python2.7/test/test_tempfile.pyt	test_manyns	cCsYd}|j}y/x(|D] }|d7}|dkrPqqWWn|jdnXdS(Niiit	iteration(R>R(RRGR>RB((s./usr/local/lib/python2.7/test/test_tempfile.pyttest_supports_iterys	

tforks!os.fork is required for this testcCs tj\}}d}ztj}|sytj|tj|t|jjdtj|tj	dnt|j}tj
|t|jd}Wd|rytj
|tjWntk
rnXtj|dntj|tj|X|j||dS(Ntasciii(RtpipeRRKtclosetwriteRAR>tencodet_exittreadRtdecodetkilltsignaltSIGKILLtEnvironmentErrortwaitpidtassertNotEqual(Rtread_fdtwrite_fdtpidtparent_valuetchild_value((s./usr/local/lib/python2.7/test/test_tempfile.pyttest_process_awarenesss(
"
%

(R%R&t__doc__R?RCRHRJtunittestt
skipUnlessthasattrRR_(((s./usr/local/lib/python2.7/test/test_tempfile.pyR<cs				
ttest__candidate_tempdir_listcBs eZdZdZdZRS(s3Test the internal function _candidate_tempdir_list.cCsJtj}|jt|dkx|D]}|j|tq,WdS(Ni(R5t_candidate_tempdir_listtassertFalseRtassertIsInstancet
basestring(Rtcandtc((s./usr/local/lib/python2.7/test/test_tempfile.pyttest_nonempty_lists
c
Cstj}x<dD]4}tj|}|stjj|||<qqWtj}x<dD]4}tj|}|stn|j	||qaWytj
}Wn#ttjfk
rtj
}nX|j	||WdQXdS(NtTMPDIRtTEMPtTMP(RlRmRn(RlRmRn(tsupporttEnvironmentVarGuardRtgetenvRRR5Ret
ValueErrortassertIntgetcwdtAttributeErrorterrortcurdir(RtenvtenvnametdirnameRi((s./usr/local/lib/python2.7/test/test_tempfile.pyttest_wanted_dirss 

	
(R%R&R`RkR{(((s./usr/local/lib/python2.7/test/test_tempfile.pyRds		tTestGetDefaultTempdircBseZdZdZRS(sTest _get_default_tempdir().csptjzOfd}tjtd|%tj|jtjgdtjtdY|j	t
}tjWdQX|j|jjtj
|jtjgWdQXfd}tjtd|[|j	t
}tjWdQX|j|jjtj
|jtjgWdQXWdQXWdtjXdS(NcsgS(N(((tour_temp_directory(s./usr/local/lib/python2.7/test/test_tempfile.pytour_candidate_listsRec_stddS(Ni(tOSError(targstkwargs((s./usr/local/lib/python2.7/test/test_tempfile.pyt
raise_OSErrorstopencs||}|_|S(N(RO(RRtfp(t	orig_openR(s./usr/local/lib/python2.7/test/test_tempfile.pyt
bad_writers	(R5R-Rot	swap_attrt_get_default_tempdirRRtlistdirtiotassertRaisestIOErrort	exceptionterrnotENOENTtshutiltrmtree(RR~tcmR((RR}Rs./usr/local/lib/python2.7/test/test_tempfile.pyttest_no_files_left_behinds(

	)(R%R&R`R(((s./usr/local/lib/python2.7/test/test_tempfile.pyR|sttest__get_candidate_namescBs eZdZdZdZRS(s0Test the internal function _get_candidate_names.cCs#tj}|j|tjdS(N(R5t_get_candidate_namesRgR=(Rtobj((s./usr/local/lib/python2.7/test/test_tempfile.pyttest_retval	scCs/tj}tj}|j||kdS(N(R5RR(Rtatb((s./usr/local/lib/python2.7/test/test_tempfile.pyttest_same_things(R%R&R`RR(((s./usr/local/lib/python2.7/test/test_tempfile.pyRs	ccsFtj}z%tjtd|
dVWdQXWdtj|XdS(NR1(R5R-RoRR(R((s./usr/local/lib/python2.7/test/test_tempfile.pyt_inside_empty_temp_dirs
cstjtdfdS(NRcs
tS(N(titer((tnames(s./usr/local/lib/python2.7/test/test_tempfile.pyt<lambda>%R@(RoRR5(R((Rs./usr/local/lib/python2.7/test/test_tempfile.pyt_mock_candidate_names"s	tTestBadTempdircBs#eZdZdZdZRS(c
Csttjtjj}}|tjtjBtjBM}tj	tj|ztj
tjtjr}|jdn|j
t}|jWdQX|j|jjtjtjf|jtjtjgWdtj	tj|XWdQXdS(Ns!can't set the directory read-only(RRRR5R1tst_modetS_IWUSRtS_IWGRPtS_IWOTHtchmodtaccesstW_OKtskipTestRRt	make_tempRsRRtEPERMtEACCESRR(RtoldmodetmodeR((s./usr/local/lib/python2.7/test/test_tempfile.pyttest_read_only_directory*s
" c
Cstttjjtjd}tjtd|@|jt	}|j
WdQX|j|jj
t
jWdQXWdQXdS(NtnonexistentR1(RRRtjoinR5R1RoRRRRRRRR(RR1R((s./usr/local/lib/python2.7/test/test_tempfile.pyttest_nonexisting_directory9s
c
Csttjjtjd}t|djtj	td|I|j
t}|jWdQX|j
|jjtjtjfWdQXWdQXdS(NtfiletwbR1(RRRRR5R1RRNRoRRRRRsRRtENOTDIRR(RR1R((s./usr/local/lib/python2.7/test/test_tempfile.pyttest_non_directoryAs
(R%R&RRR(((s./usr/local/lib/python2.7/test/test_tempfile.pyR(s		ttest__mkstemp_innercBseZdZdddYZdddddZdZdZdZe	j
ed	d
Ze	j
e
ddZe	j
ed
dZdZdZdZRS(s*Test the internal function _mkstemp_inner.t	mkstempedcBsGeZejZejZejZ	ej
ZdZdZ
dZRS(cCsC|r|j}n	|j}tj||||\|_|_dS(N(t_bflagst_tflagsR5t_mkstemp_innertfdR(RRRRtbintflags((s./usr/local/lib/python2.7/test/test_tempfile.pyt__init__Ts	cCstj|j|dS(N(RROR(Rtstr((s./usr/local/lib/python2.7/test/test_tempfile.pyROZscCs$|j|j|j|jdS(N(t_closeRt_unlinkR(R((s./usr/local/lib/python2.7/test/test_tempfile.pyt__del__]s(R%R&R5t_bin_openflagsRt_text_openflagsRRRNRtunlinkRRROR(((s./usr/local/lib/python2.7/test/test_tempfile.pyRNs						R@icCsk|dkrtj}ny|j||||}Wn|jdnX|j|j||||S(NR(RR5R0RRR$R(RRRRRR((s./usr/local/lib/python2.7/test/test_tempfile.pyt	do_createascCs|jjd|jddjd|jddjd|jddddjd|jddddjddS(NtblatRRRRtaas.txt(RRO(R((s./usr/local/lib/python2.7/test/test_tempfile.pyt
test_basicls
cCs7tt}x$|D]}|jdd||<qWdS(NRR(trangeRER(RtextantRG((s./usr/local/lib/python2.7/test/test_tempfile.pyttest_basic_manyts
cCs>tj}z|jd|jdWdtj|XdS(NRR(R5R-RRORtrmdir(RR((s./usr/local/lib/python2.7/test/test_tempfile.pyttest_choose_directoryzssos.stat not availablecCsj|j}tjtj|jj}d}tjdkrV|d?}|d
}n|j||dS(Nitwin32tos2emxiiii@(RRi	iI(	RRtS_IMODERRRRtplatformR(RRRR9tuser((s./usr/local/lib/python2.7/test/test_tempfile.pyttest_file_modes

sos.spawnl not availablecCstjrd}nd}|j}d|j}y
t}Wntk
r[tjd}nXtj	j
tj	jtj	j|d}tj
d
krdtj}d|}n	tj}tjtjtj||||}|j|dkd||j|dkd	|dS(Ntvtqs%distf_inherit_check.pyRs"%s"s$child process caught fatal signal %ds child process reports failure %d(R(RotverboseRRt__file__t	NameErrorRtargvRRRRzRRt
executableRtP_WAITRf(RRRRtmettestert	decoratedtretval((s./usr/local/lib/python2.7/test/test_tempfile.pyttest_noinherits&		


$	

	$stext mode not availablecCs|jddjddS(NRisblat
(RRO(R((s./usr/local/lib/python2.7/test/test_tempfile.pyt
test_textmodescCs"tjtjtjdtjS(NR@(R5RR0R2R(R((s./usr/local/lib/python2.7/test/test_tempfile.pyRscCsttdddo|j\}}tj||j|jd|j\}}tj||j|jdWdQXWdQXdS(Ntaaatbbb(RRRRRNRtendswith(Rtfd1tname1tfd2tname2((s./usr/local/lib/python2.7/test/test_tempfile.pyt!test_collision_with_existing_files


cCstutddd\tj}|j|jd|j\}}tj||j|jdWdQXWdQXdS(NRR(	RRR5R-RRRRRN(RRRR((s./usr/local/lib/python2.7/test/test_tempfile.pyt&test_collision_with_existing_directorys

(N(R%R&R`RRRRRRRaRbthas_statRt
has_spawnlRthas_textmodeRRRR(((s./usr/local/lib/python2.7/test/test_tempfile.pyRKs			%		
ttest_gettempprefixcBs eZdZdZdZRS(sTest gettempprefix().cCs9tj}|j|t|jt|dkdS(Ni(R5R/RgRhRR(Rtp((s./usr/local/lib/python2.7/test/test_tempfile.pyttest_sane_templatescCstjd}tjdd}zjtjj||}y tj|tjtjB}Wn|j	dnXtj
|tj|Wdtj|XdS(Ns
xxxxxx.xxxtprefixR@sos.open(
R5R/R-RRRRtO_RDWRtO_CREATRRNRR(RRtdR((s./usr/local/lib/python2.7/test/test_tempfile.pyttest_usable_templates 
(R%R&R`RR(((s./usr/local/lib/python2.7/test/test_tempfile.pyRs	ttest_gettempdircBs)eZdZdZdZdZRS(sTest gettempdir().cCs_tj}|jtjj|p0|tjkd||jtjj|d|dS(Ns%s is not an absolute paths%s is not a directory(R5R0RRRtisabsRwtisdir(RR((s./usr/local/lib/python2.7/test/test_tempfile.pyttest_directory_existss
$cCsLy'tj}|jd|jWn|jdtjnXdS(NRscreate file in %s(R5R*RORNRR0(RR((s./usr/local/lib/python2.7/test/test_tempfile.pyttest_directory_writable
s
cCs/tj}tj}|j||kdS(N(R5R0R(RRR((s./usr/local/lib/python2.7/test/test_tempfile.pyRs(R%R&R`RRR(((s./usr/local/lib/python2.7/test/test_tempfile.pyRs			
ttest_mkstempcBs2eZdZddddZdZdZRS(sTest mkstemp().R@c	Cs|dkrtj}nyotjd|d|d|\}}tjj|\}}tjj|}|j||d||fWn|j	dnXz|j
||||Wdtj|tj|XdS(NRRtsuffixs+Directory '%s' incorrectly returned as '%s'R,(
RR5R0R,RRRRRRR$RNR(	RRRRRRR R!tadir((s./usr/local/lib/python2.7/test/test_tempfile.pyR$s$
cCsj|j|jdd|jdd|jdddd|jdddd|jdddS(	NRRRRRs.txtRt.(R(R((s./usr/local/lib/python2.7/test/test_tempfile.pyR6s
cCs5tj}z|jd|Wdtj|XdS(NR(R5R-RRR(RR((s./usr/local/lib/python2.7/test/test_tempfile.pyR?sN(R%R&R`RRRR(((s./usr/local/lib/python2.7/test/test_tempfile.pyR!s		ttest_mkdtempcBsqeZdZdZddddZdZdZdZe	j
eddZd	Z
d
ZRS(sTest mkdtemp().cCs
tjS(N(R5R-(R((s./usr/local/lib/python2.7/test/test_tempfile.pyRMsR@cCs|dkrtj}ny"tjd|d|d|}Wn|jdnXy|j|||||SWntj|nXdS(NRRRR-(RR5R0R-RR$RR(RRRRR((s./usr/local/lib/python2.7/test/test_tempfile.pyRPs"
cCstj|jtj|jddtj|jddtj|jddddtj|jdddddS(NRRRRRs.txt(RRR(R((s./usr/local/lib/python2.7/test/test_tempfile.pyR_s
cCsott}z+x$|D]}|jdd||<qWWdx-|D]%}t|trAtj|qAqAWXdS(NRR(RRERt
isinstanceRhRR(RRRG((s./usr/local/lib/python2.7/test/test_tempfile.pyRgs

cCs>tj}ztj|jd|Wdtj|XdS(NR(R5R-RRR(RR((s./usr/local/lib/python2.7/test/test_tempfile.pyRrssos.stat not availablecCs|j}zetjtj|j}|dM}d}tjd	kr`|d?}|d}n|j||Wdtj|XdS(NiiRRiiii@(RRi	iI(	RRRRRRRRR(RRRR9R((s./usr/local/lib/python2.7/test/test_tempfile.pyt	test_modezs


cCstutddd\tjdt}|j|j|jjdtj	}|j|jdWdQXWdQXdS(NRRtdelete(
RRR5R*tFalseRNRRRR-(RRR((s./usr/local/lib/python2.7/test/test_tempfile.pyRs

cCsqtbtdddItj}|j|jdtj}|j|jdWdQXWdQXdS(NRR(RRR5R-RR(Rtdir1tdir2((s./usr/local/lib/python2.7/test/test_tempfile.pyRs
N(R%R&R`RRRRRRRaRbRRRR(((s./usr/local/lib/python2.7/test/test_tempfile.pyRJs					ttest_mktempcBsTeZdZdZdZdd	dYZdddZdZdZRS(
sTest mktemp().cCstj|_dS(N(R5R-R(R((s./usr/local/lib/python2.7/test/test_tempfile.pyR?scCs)|jr%tj|jd|_ndS(N(RRRR(R((s./usr/local/lib/python2.7/test/test_tempfile.pyttearDowns	tmktempedcBs,eZejZejZdZdZ	RS(cCsGtjd|d|d||_tjtj|j|jddS(NRRRi(R5RRRRNRR(RRRR((s./usr/local/lib/python2.7/test/test_tempfile.pyRs!cCs|j|jdS(N(RR(R((s./usr/local/lib/python2.7/test/test_tempfile.pyRs(
R%R&RRRR5RRRR(((s./usr/local/lib/python2.7/test/test_tempfile.pyR	s			R@cCsSy|j|j||}Wn|jdnX|j|j|j|||S(NR(R	RRR$R(RRRR((s./usr/local/lib/python2.7/test/test_tempfile.pyRscCsZ|j|jdd|jdd|jdddd|jdddddS(NRRRRRs.txt(R(R((s./usr/local/lib/python2.7/test/test_tempfile.pyRs

cCs7tt}x$|D]}|jdd||<qWdS(NRR(RRER(RRRG((s./usr/local/lib/python2.7/test/test_tempfile.pyRHs
((	R%R&R`R?RR	RRRH(((s./usr/local/lib/python2.7/test/test_tempfile.pyRs		
		ttest_NamedTemporaryFilecBskeZdZdddedZdZdZdZdZ	dZ
dZd	Zd
Z
RS(sTest NamedTemporaryFile().R@c	Csw|dkrtj}ny(tjd|d|d|d|}Wn|jdnX|j|j||||S(NRRRRR*(RR5R0R*RR$R(RRRRRR((s./usr/local/lib/python2.7/test/test_tempfile.pyRs
cCsZ|j|jdd|jdd|jdddd|jdddddS(NRRRRRs.txt(R(R((s./usr/local/lib/python2.7/test/test_tempfile.pyRs

cCs6tj}|jtjj|jd|jdS(Ns$NamedTemporaryFile %s does not exist(R5R*RRRtexistsR(Rtf((s./usr/local/lib/python2.7/test/test_tempfile.pyttest_creates_namedscCsttj}zStjd|}|jd|j|jtjj|j	d|j	Wdtj
|XdS(NRRs(NamedTemporaryFile %s exists after close(R5R-R*RORNRfRRRRR(RRR((s./usr/local/lib/python2.7/test/test_tempfile.pyttest_del_on_closes

cCstj}d}zbtjd|dt}|j}|jd|j|jt	j
j|jd|jWd|dk	rt	j|nt	j
|XdS(NRRRs)NamedTemporaryFile %s missing after close(R5R-RR*RRRORNRRRRRR(RRttmpR((s./usr/local/lib/python2.7/test/test_tempfile.pyttest_dis_del_on_close
s	

cCsVtj}|jd|jy|j|jWn|jdnXdS(Nsabc
RN(R5R*RORNR(RR((s./usr/local/lib/python2.7/test/test_tempfile.pyttest_multiple_closes


csptj#|jtjjjWdQX|jtjjjfd}|jt	|dS(NcsWdQXdS(N(((R(s./usr/local/lib/python2.7/test/test_tempfile.pyt
use_closed-s(
R5R*RRRRRRfRRr(RR((Rs./usr/local/lib/python2.7/test/test_tempfile.pyttest_context_manager(s
"cstjtj}gfd}d}|t_|t_z-|jttj|jtdWdt_|t_XdS(Ncs|j|dS(N(R7(R(tclosedt	old_close(s./usr/local/lib/python2.7/test/test_tempfile.pyRN7s
cWs
tdS(N(Rr(R((s./usr/local/lib/python2.7/test/test_tempfile.pytfdopen:si(	RRNRRRrR5R*RR(Rt
old_fdopenRNR((RRs./usr/local/lib/python2.7/test/test_tempfile.pyttest_no_leak_fd2s						c	Cshtj}|jtj||jttjddd|WdQX|jt	j
|gdS(NRR((R5R-t
addCleanupRoRRt	TypeErrorR*RRR(RR((s./usr/local/lib/python2.7/test/test_tempfile.pyt
test_bad_modeEs
N(R%R&R`RtTrueRRR
RRRRRR(((s./usr/local/lib/python2.7/test/test_tempfile.pyR
s
						
	ttest_SpooledTemporaryFilecBseZdZdddddZdZdZdZdZdZ	d	Z
d
ZdZdZ
d
ZdZdZdZdZdZdZRS(sTest SpooledTemporaryFile().iR@c	Cs^|dkrtj}ny(tjd|d|d|d|}Wn|jdnX|S(Ntmax_sizeRRRR3(RR5R0R3R(RRRRRR((s./usr/local/lib/python2.7/test/test_tempfile.pyRSs(cCsN|j}|j|j|jdddddd}|j|jdS(NRidRRRs.txt(RRft_rolled(RR((s./usr/local/lib/python2.7/test/test_tempfile.pyR^scCstj}ztjddd|}|j|j|jdd|j|j|j}|j|jt	j
j|d|Wdt	j|XdS(NRi
Rsblat is*SpooledTemporaryFile %s exists after close(
R5R-R3RfRRORRRNRRRR(RRRtfilename((s./usr/local/lib/python2.7/test/test_tempfile.pyRes	
cCsj|jdd}|j|jx1tdD]#}|jdd|jdq/W|j|jdS(NRiiitxitxxxxxxxxxxxxxxxxxxxx(RRfRRtseekRO(RRRG((s./usr/local/lib/python2.7/test/test_tempfile.pyttest_rewrite_smalltscCs}|jdd}|j|j|jd|j|j|jd|j|j|jd|j|jdS(NRiR!ii
R"t
xxxxxxxxxx(RRfRROR(RR((s./usr/local/lib/python2.7/test/test_tempfile.pyttest_write_sequential}s


cCsF|j}|jd|jd|j}|j|ddS(NR!tytzitxyz(R!R'R((Rt
writelinesR#RRR(RRtbuf((s./usr/local/lib/python2.7/test/test_tempfile.pyttest_writeliness


cCsY|jdd}|jddd	f|j|j|jd|j|jdS(
NRi#R!ii
iR"R%txxxxx(RR*RfRROR(RR((s./usr/local/lib/python2.7/test/test_tempfile.pyttest_writelines_sequentials

cCs|jdd}|jd	|jd|j|j|jt|jdgd|jd|j|j|jd|jt|jdgdddgdS(
NRisabc
iisx
ysx
R'sabc
abc
abc
abc
abc
(	RROR#RfRRtlistt
xreadlinesR(RR((s./usr/local/lib/python2.7/test/test_tempfile.pyttest_xreadliness

#

cCsc|jdd}|j|j|jdd|j|j|jd|j|jdS(NRiidiR!(RRfRR#ROR(RR((s./usr/local/lib/python2.7/test/test_tempfile.pyttest_sparses
cCsO|jdd}|j|j|j|jdk|j|jdS(NRii(RRfRRtfileno(RR((s./usr/local/lib/python2.7/test/test_tempfile.pyttest_filenoscCsftj}|jd|j|j|jy|j|jWn|jdnXdS(Nsabc
RN(R5R3RORfRRNR(RR((s./usr/local/lib/python2.7/test/test_tempfile.pyt#test_multiple_close_before_rollovers


cCsltjdd}|jd|j|j|jy|j|jWn|jdnXdS(NRisabc
RN(R5R3RORRRNR(RR((s./usr/local/lib/python2.7/test/test_tempfile.pyt"test_multiple_close_after_rollovers


cCs|jdd}|j}|j}|j}|dd|dd|dd|j|dddddkdS(NRiRi#RiiF(RRRROR#R(RRRRROR#((s./usr/local/lib/python2.7/test/test_tempfile.pyttest_bound_methodss			
cCs
tjdd}|jd|j|j|j|jd|j|j|j	t
|jWdQX|j	t
|jWdQX|jd|j
|j|j|jd|j|j|j	t
|jWdQX|j	t
|jWdQXdS(NRi
R!sw+bR%(R5R3RORfRRRtassertIsNoneRRRutnewlinestencodingRtassertIsNotNone(RR((s./usr/local/lib/python2.7/test/test_tempfile.pyttest_propertiess"




csntjdd'|jj|jjWdQX|jjfd}|jt|dS(NRicsWdQXdS(N(((R(s./usr/local/lib/python2.7/test/test_tempfile.pyRs(R5R3RfRRRRRr(RR((Rs./usr/local/lib/python2.7/test/test_tempfile.pyt$test_context_manager_before_rolloverscstjddN|jjjdj|jj|jjWdQX|jjfd}|jt	|dS(NRisabc
csWdQXdS(N(((R(s./usr/local/lib/python2.7/test/test_tempfile.pyRs(
R5R3RfRROtflushRRRRr(RR((Rs./usr/local/lib/python2.7/test/test_tempfile.pyt$test_context_manager_during_rollovers

cstjddjdj|jj|jjWdQX|jjfd}|jt	|dS(NRisabc
csWdQXdS(N(((R(s./usr/local/lib/python2.7/test/test_tempfile.pyRs(
R5R3ROR>RRRfRRRr(RR((Rs./usr/local/lib/python2.7/test/test_tempfile.pyt#test_context_manager_after_rollover	s

N(R%R&R`RRRRR$R&R,R.R1R2R4R5R6R7R<R=R?R@(((s./usr/local/lib/python2.7/test/test_tempfile.pyRPs$										
							ttest_TemporaryFilecBs)eZdZdZdZdZRS(sTest TemporaryFile().cCs)ytjWn|jdnXdS(NR+(R5R+R(R((s./usr/local/lib/python2.7/test/test_tempfile.pyRscCs}tj}tjd|}|jdytj|Wn:tj}|jtj||j	d|nXdS(NRRR(
R5R-R+RORRRR
RNR(RRRR((s./usr/local/lib/python2.7/test/test_tempfile.pyttest_has_no_name&s


cCsVtj}|jd|jy|j|jWn|jdnXdS(Nsabc
RN(R5R+RORNR(RR((s./usr/local/lib/python2.7/test/test_tempfile.pyR7s


(R%R&R`RRBR(((s./usr/local/lib/python2.7/test/test_tempfile.pyRAs		cCstjtdS(N(Rotrun_unittestttest_classes(((s./usr/local/lib/python2.7/test/test_tempfile.pyt	test_mainHst__main__(RR	((3R5RRRRURRR'twarningst
contextlibRattestRRotfilterwarningstRuntimeWarningR%RcRRRRRRRREtTestCaseR
RDR)R7R<RdR|RtcontextmanagerRRRRRRRRRR
RRAR*R+RE(((s./usr/local/lib/python2.7/test/test_tempfile.pyt<module>sx
		
I
'
)


	#

 
&
W
9
k

*	

Zerion Mini Shell 1.0