config root man

Current Path : /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 : //usr/local/lib/python2.5/test/test_tempfile.pyo

³ò
h”Rc@€sddklZddkZddkZddkZddkZddkZddkZddkZddk	l
Z
eiddeddde
ƒeed	ƒoddkZd
ZndZeieijZeedƒZeid
jo
dZn!eid/jo
dZndZdeifd„ƒYZgZdefd„ƒYZeieƒdefd„ƒYZeieƒdefd„ƒYZeieƒdefd„ƒYZeieƒdefd„ƒYZeieƒdefd „ƒYZ eie ƒd!efd"„ƒYZ!eie!ƒd#efd$„ƒYZ"eie"ƒd%efd&„ƒYZ#eie#ƒd'efd(„ƒYZ$eie$ƒd)efd*„ƒYZ%eie%ƒd+efd,„ƒYZ&ei'ei(j	oeie&ƒnd-„Z)e
d.joe)ƒndS(0iÿÿÿÿ(twith_statementN(ttest_supporttignoretcategorytmessagetmktemptmoduletstatiitspawnltmaci topenbsd3topenbsd4i0idtTCcB€s,eZeidƒZdd„Zd„ZRS(s[a-zA-Z0-9_-]{6}$cC€sC|djotiƒ}n|id||d|dfƒdS(Ns%s raised %s: %sii(tNonetsystexc_infotfail(tselftwhattei((s./usr/local/lib/python2.5/test/test_tempfile.pytfailOnException,s
c	C€søtii|ƒ\}}|t|ƒ }|t|ƒt|ƒ}|itii|ƒtii|ƒd||fƒ|i||d||fƒ|i||d||fƒ|t|ƒt|ƒt|ƒ!}|i|ii|ƒ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}$/(	tostpathtsplittlentassertEqualtabspathtassert_t	str_checktmatch(	Rtnametdirtpretsuftndirtnbasetnpretnsuf((s./usr/local/lib/python2.5/test/test_tempfile.pyt	nameCheck1s$#N(t__name__t
__module__tretcompileRR
RR&(((s./usr/local/lib/python2.5/test/test_tempfile.pyR(sttest_exportscB€seZd„ZRS(cC€sÓti}hdd<dd<dd<dd<dd<dd<dd<dd	<dd
<dd<}g}x=|D]5}|dd
jo||jo|i|ƒqvqvW|it|ƒdjd|ƒdS(NitNamedTemporaryFilet
TemporaryFiletmkstemptmkdtempRtTMP_MAXt
gettempprefixt
gettempdirttempdirttemplateit_sunexpected keys: %s(ttempfilet__dict__tappendt
failUnlessR(Rtdicttexpectedtunexptkey((s./usr/local/lib/python2.5/test/test_tempfile.pyR+Fs&										(R'R(R+(((s./usr/local/lib/python2.5/test/test_tempfile.pyR+Esttest__RandomNameSequencecB€s2eZdZd„Zd„Zd„Zd„ZRS(s6Test the internal iterator object _RandomNameSequence.cC€stiƒ|_dS(N(R6t_RandomNameSequencetr(R((s./usr/local/lib/python2.5/test/test_tempfile.pytsetUpdscC€s)|iiƒ}|i|dddƒdS(Nt(R@tnextR&(Rts((s./usr/local/lib/python2.5/test/test_tempfile.pyttest_get_six_char_strgscC€sih}|i}xSttƒD]E}|iƒ}|i|dddƒ|i||jƒd||<qWdS(NRBi(R@txranget
TEST_FILESRCR&tfailIf(RR:R@tiRD((s./usr/local/lib/python2.5/test/test_tempfile.pyt	test_manyls	
cC€sXd}|i}y1x*|D]"}|d7}|djoPqqWWntdƒnXdS(Niiit	iteration(R@R(RRIR@RD((s./usr/local/lib/python2.5/test/test_tempfile.pyttest_supports_iterws	


(R'R(t__doc__RARERJRL(((s./usr/local/lib/python2.5/test/test_tempfile.pyR>as
			ttest__candidate_tempdir_listcB€s eZdZd„Zd„ZRS(s3Test the internal function _candidate_tempdir_list.cC€sWtiƒ}|it|ƒdjƒx+|D]#}|it|tƒd|ƒq,WdS(Nis%s is not a string(R6t_candidate_tempdir_listRHRRt
isinstancet
basestring(Rtcandtc((s./usr/local/lib/python2.5/test/test_tempfile.pyttest_nonempty_listŠscC€sg}zðxNdD]F}ti|ƒ}|p*tii|ƒti|<|i|ƒqqWtiƒ}xAdD]9}ti|ƒ}|p
t‚n|i	||jƒqmWyti
ƒ}Wn%ttifj
oti
}nX|i	||jƒWdx|D]}ti|=qWXdS(NtTMPDIRtTEMPtTMP(RURVRW(RURVRW(RtgetenvRRtenvironR8R6ROt
ValueErrorRtgetcwdtAttributeErrorterrortcurdir(RtaddedtenvnametdirnameRRtp((s./usr/local/lib/python2.5/test/test_tempfile.pyttest_wanted_dirs”s.
(R'R(RMRTRc(((s./usr/local/lib/python2.5/test/test_tempfile.pyRN‡s	
ttest__get_candidate_namescB€s eZdZd„Zd„ZRS(s0Test the internal function _get_candidate_names.cC€s)tiƒ}|it|tiƒƒdS(N(R6t_get_candidate_namesRRPR?(Rtobj((s./usr/local/lib/python2.5/test/test_tempfile.pyttest_retval½scC€s/tiƒ}tiƒ}|i||jƒdS(N(R6ReR(Rtatb((s./usr/local/lib/python2.5/test/test_tempfile.pyttest_same_thingÂs(R'R(RMRgRj(((s./usr/local/lib/python2.5/test/test_tempfile.pyRdºs	ttest__mkstemp_innercB€sleZdZddd„ƒYZd
dddd„Zd„Zd„Zd„Zd	„Z	d
„Z
d„ZRS(s*Test the internal function _mkstemp_inner.t	mkstempedcB€sGeZeiZeiZeiZ	ei
Zd„Zd„Z
d„ZRS(cC€sE|o
|i}n
|i}ti||||ƒ\|_|_dS(N(t_bflagst_tflagsR6t_mkstemp_innertfdR(RRR R!tbintflags((s./usr/local/lib/python2.5/test/test_tempfile.pyt__init__Õs
	cC€sti|i|ƒdS(N(RtwriteRp(Rtstr((s./usr/local/lib/python2.5/test/test_tempfile.pyRtÛscC€s$|i|iƒ|i|iƒdS(N(t_closeRpt_unlinkR(R((s./usr/local/lib/python2.5/test/test_tempfile.pyt__del__Þs(R'R(R6t_bin_openflagsRmt_text_openflagsRnRtcloseRvtunlinkRwRsRtRx(((s./usr/local/lib/python2.5/test/test_tempfile.pyRlÏs						RBicC€sm|djotiƒ}ny|i||||ƒ}Wn|idƒnX|i|i|||ƒ|S(NRo(R
R6R2RlRR&R(RRR R!Rqtfile((s./usr/local/lib/python2.5/test/test_tempfile.pyt	do_createâs
cC€s‡|iƒidƒ|iddƒidƒ|iddƒidƒ|iddddƒidƒ|iddddƒidƒdS(NtblatR RhR!Ritaas.txt(R~Rt(R((s./usr/local/lib/python2.5/test/test_tempfile.pyt
test_basicís
cC€s7ttƒ}x$|D]}|iddƒ||<qWdS(NR R€(trangeRGR~(RtextantRI((s./usr/local/lib/python2.5/test/test_tempfile.pyttest_basic_manyõscC€s>tiƒ}z|id|ƒidƒWdti|ƒXdS(NRR(R6R/R~RtRtrmdir(RR((s./usr/local/lib/python2.5/test/test_tempfile.pyttest_choose_directoryûscC€s{tpdSn|iƒ}titi|iƒiƒ}d}tid	jo|d?}|d}n|i	||ƒdS(Ni€twin32tos2emxR	iiii@(swin32sos2emxsmaci	iI(
thas_statR~RtS_IMODERRtst_modeRtplatformR(RR}tmodeR;tuser((s./usr/local/lib/python2.5/test/test_tempfile.pyttest_file_modes
c
C€s-tpdSntio
d}nd}|iƒ}d|i}y
t}Wn tj
otid}nXt	i
it	i
it	i
i
|ƒƒdƒ}tid
jodti}d|}n
ti}t	it	iti||||ƒ}|i|djd|ƒ|i|djd	|ƒdS(Ntvtqs%distf_inherit_check.pyR‡s"%s"s$child process caught fatal signal %ds child process reports failure %d(swin32(t
has_spawnlRtverboseR~Rpt__file__t	NameErrorRtargvRRtjoinRaRRŒt
executableRtP_WAITRH(RRR}Rptmettestert	decoratedtretval((s./usr/local/lib/python2.5/test/test_tempfile.pyttest_noinherits*



$	
	$cC€s,tpdSn|iddƒidƒdS(NRqisblat
(thas_textmodeR~Rt(R((s./usr/local/lib/python2.5/test/test_tempfile.pyt
test_textmode8s(N(R'R(RMRlR
R~RR„R†RRžR (((s./usr/local/lib/python2.5/test/test_tempfile.pyRkÌs					&ttest_gettempprefixcB€s eZdZd„Zd„ZRS(sTest gettempprefix().cC€s?tiƒ}|it|tƒƒ|it|ƒdjƒdS(Ni(R6R1RRPRQR(RRb((s./usr/local/lib/python2.5/test/test_tempfile.pyttest_sane_templateFsc
C€s¡tiƒd}tiddƒ}zjtii||ƒ}y ti|titiBƒ}Wn|i	dƒnXti
|ƒti|ƒWdti|ƒXdS(Ns
xxxxxx.xxxtprefixRBsos.open(
R6R1R/RRR—topentO_RDWRtO_CREATRR{R|R…(RRbtdRp((s./usr/local/lib/python2.5/test/test_tempfile.pyttest_usable_templateMs 
(R'R(RMR¢R¨(((s./usr/local/lib/python2.5/test/test_tempfile.pyR¡Cs	ttest_gettempdircB€s)eZdZd„Zd„Zd„ZRS(sTest gettempdir().cC€s`tiƒ}|itii|ƒp
|tijd|ƒ|itii|ƒd|ƒdS(Ns%s is not an absolute paths%s is not a directory(R6R2RRRtisabsR^tisdir(RR((s./usr/local/lib/python2.5/test/test_tempfile.pyttest_directory_existsfs
%cC€sLy'tiƒ}|idƒ|iƒWn|idtiƒƒnXdS(NRscreate file in %s(R6R,RtR{RR2(RR}((s./usr/local/lib/python2.5/test/test_tempfile.pyttest_directory_writableos
cC€s/tiƒ}tiƒ}|i||jƒdS(N(R6R2R(RRhRi((s./usr/local/lib/python2.5/test/test_tempfile.pyRj|s(R'R(RMR¬R­Rj(((s./usr/local/lib/python2.5/test/test_tempfile.pyR©cs			
ttest_mkstempcB€s2eZdZdddd„Zd„Zd„ZRS(sTest mkstemp().RBc	C€sß|djotiƒ}nyotid|d|d|ƒ\}}tii|ƒ\}}tii|ƒ}|i||d||fƒWn|i	dƒnXz|i
||||ƒWdti|ƒti|ƒXdS(NRR£tsuffixs+Directory '%s' incorrectly returned as '%s'R.(
R
R6R2R.RRRRRRR&R{R|(	RRR R!RpRR"R#tadir((s./usr/local/lib/python2.5/test/test_tempfile.pyR~‰s
$
cC€sj|iƒ|iddƒ|iddƒ|iddddƒ|iddddƒ|iddƒdS(	NR RhR!RiR€s.txtRt.(R~(R((s./usr/local/lib/python2.5/test/test_tempfile.pyR›s
cC€s5tiƒ}z|id|ƒWdti|ƒXdS(NR(R6R/R~RR…(RR((s./usr/local/lib/python2.5/test/test_tempfile.pyR†¤sN(R'R(RMR
R~RR†(((s./usr/local/lib/python2.5/test/test_tempfile.pyR®†s		ttest_mkdtempcB€sDeZdZdddd„Zd„Zd„Zd„Zd„ZRS(sTest mkdtemp().RBcC€s’|djotiƒ}ny"tid|d|d|ƒ}Wn|idƒnXy|i||||ƒ|SWnti|ƒ‚nXdS(NRR£R¯R/(R
R6R2R/RR&RR…(RRR R!R((s./usr/local/lib/python2.5/test/test_tempfile.pyR~²s
"
cC€s‡ti|iƒƒti|iddƒƒti|iddƒƒti|iddddƒƒti|iddddƒƒdS(NR RhR!RiR€s.txt(RR…R~(R((s./usr/local/lib/python2.5/test/test_tempfile.pyRÁs
c
C€sqttƒ}z+x$|D]}|iddƒ||<qWWdx/|D]'}t|tƒoti|ƒqAqAWXdS(NR R€(R‚RGR~RPRQRR…(RRƒRI((s./usr/local/lib/python2.5/test/test_tempfile.pyR„ÉscC€s>tiƒ}zti|id|ƒƒWdti|ƒXdS(NR(R6R/RR…R~(RR((s./usr/local/lib/python2.5/test/test_tempfile.pyR†ÔscC€s—tpdSn|iƒ}zgtiti|ƒiƒ}|dM}d}tid
jo|d?}|d}n|i||ƒWdti	|ƒXdS(
NiÿiÀR‡RˆR	iiii@(swin32sos2emxsmaci	iI(
R‰R~RRŠRR‹RRŒRR…(RRRR;RŽ((s./usr/local/lib/python2.5/test/test_tempfile.pyt	test_modeÜs

N(	R'R(RMR
R~RR„R†R³(((s./usr/local/lib/python2.5/test/test_tempfile.pyR²¯s			ttest_mktempcB€sTeZdZd„Zd„Zdd	d„ƒYZddd„Zd„Zd„ZRS(
sTest mktemp().cC€stiƒ|_dS(N(R6R/R(R((s./usr/local/lib/python2.5/test/test_tempfile.pyRA÷scC€s+|ioti|iƒd|_ndS(N(RRR…R
(R((s./usr/local/lib/python2.5/test/test_tempfile.pyttearDownús
tmktempedcB€s,eZeiZeiZd„Zd„Z	RS(cC€sGtid|d|d|ƒ|_titi|i|idƒƒdS(NRR£R¯i€(R6RRRR{R¤Rm(RRR R!((s./usr/local/lib/python2.5/test/test_tempfile.pyRss!cC€s|i|iƒdS(N(RwR(R((s./usr/local/lib/python2.5/test/test_tempfile.pyRx	s(
R'R(RR|RwR6RyRmRsRx(((s./usr/local/lib/python2.5/test/test_tempfile.pyR¶ÿs			RBcC€sSy|i|i||ƒ}Wn|idƒnX|i|i|i||ƒ|S(NR(R¶RRR&R(RR R!R}((s./usr/local/lib/python2.5/test/test_tempfile.pyR~scC€sZ|iƒ|iddƒ|iddƒ|iddddƒ|iddddƒdS(NR RhR!RiR€s.txt(R~(R((s./usr/local/lib/python2.5/test/test_tempfile.pyRs

cC€s7ttƒ}x$|D]}|iddƒ||<qWdS(NR R€(R‚RGR~(RRƒRI((s./usr/local/lib/python2.5/test/test_tempfile.pyRJs((	R'R(RMRARµR¶R~RRJ(((s./usr/local/lib/python2.5/test/test_tempfile.pyR´òs		
		ttest_NamedTemporaryFilecB€sMeZdZdddd„Zd„Zd„Zd„Zd„Zd„Z	RS(	sTest NamedTemporaryFile().RBc
C€ss|djotiƒ}ny"tid|d|d|ƒ}Wn|idƒnX|i|i|||ƒ|S(NRR£R¯R,(R
R6R2R,RR&R(RRR R!R}((s./usr/local/lib/python2.5/test/test_tempfile.pyR~4s
"cC€sZ|iƒ|iddƒ|iddƒ|iddddƒ|iddddƒdS(NR RhR!RiR€s.txt(R~(R((s./usr/local/lib/python2.5/test/test_tempfile.pyR@s

cC€s6tiƒ}|itii|iƒd|iƒdS(Ns$NamedTemporaryFile %s does not exist(R6R,R9RRtexistsR(Rtf((s./usr/local/lib/python2.5/test/test_tempfile.pyttest_creates_namedHscC€sttiƒ}zStid|ƒ}|idƒ|iƒ|itii|i	ƒd|i	ƒWdti
|ƒXdS(NRRs(NamedTemporaryFile %s exists after close(R6R/R,RtR{RHRRR¸RR…(RRR¹((s./usr/local/lib/python2.5/test/test_tempfile.pyttest_del_on_closeNs

cC€sVtiƒ}|idƒ|iƒy|iƒ|iƒWn|idƒnXdS(Nsabc
R{(R6R,RtR{R(RR¹((s./usr/local/lib/python2.5/test/test_tempfile.pyttest_multiple_closeZs


c€sŒtiƒi}iƒ}z)|~‰|itiiˆiƒƒWd|~QX|i	tiiˆiƒƒ‡fd†}|i
t|ƒdS(Nc€s$ˆi}iƒzWd|~QXdS(N(t__exit__t	__enter__(t_[1](R¹(s./usr/local/lib/python2.5/test/test_tempfile.pyt
use_closedjs(R6R,R½R¾R9RRR¸RRHtfailUnlessRaisesRZ(RR¿t_[2]RÀ((R¹s./usr/local/lib/python2.5/test/test_tempfile.pyttest_context_manageres
%(N(
R'R(RMR
R~RRºR»R¼RÃ(((s./usr/local/lib/python2.5/test/test_tempfile.pyR·1s				ttest_TemporaryFilecB€s)eZdZd„Zd„Zd„ZRS(sTest TemporaryFile().cC€s)ytiƒWn|idƒnXdS(NR-(R6R-R(R((s./usr/local/lib/python2.5/test/test_tempfile.pyRwscC€s}tiƒ}tid|ƒ}|idƒyti|ƒWn:tiƒ}|iƒti|ƒ|i	d|ƒnXdS(NRRR…(
R6R/R-RtRR…RRR{R(RRR¹R((s./usr/local/lib/python2.5/test/test_tempfile.pyttest_has_no_names


cC€sVtiƒ}|idƒ|iƒy|iƒ|iƒWn|idƒnXdS(Nsabc
R{(R6R-RtR{R(RR¹((s./usr/local/lib/python2.5/test/test_tempfile.pyR¼s


(R'R(RMRRÅR¼(((s./usr/local/lib/python2.5/test/test_tempfile.pyRÄts		cC€stitŒdS(N(Rtrun_unittestttest_classes(((s./usr/local/lib/python2.5/test/test_tempfile.pyt	test_main¡st__main__(R
R(*t
__future__RR6RRR)terrnotwarningstunittestttestRtfilterwarningstRuntimeWarningR'thasattrRR‰RzRyRŸR’RŒRGtTestCaseRRÇR+R8R>RNRdRkR¡R©R®R²R´R·RÄR,R-RÈ(((s./usr/local/lib/python2.5/test/test_tempfile.pys<module>sh




#
-

t

 
&
@
9
@
*	


Man Man