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_profilehooks.pyo

³ò
h”Rc@súddkZddkZddkZddklZddd„ƒYZdefd„ƒYZdeifd„ƒYZd	efd
„ƒYZ	defd„ƒYZ
d
„Zd„ZeeƒZ
dd„Zd„Zd„ZedjoeƒndS(iÿÿÿÿN(ttest_supporttHookWatchercBs/eZd„Zd„Zdd„Zd„ZRS(cCsg|_g|_dS(N(tframestevents(tself((s2/usr/local/lib/python2.5/test/test_profilehooks.pyt__init__	s	cCs?|djp|djp
|djo|i||ƒndS(Ntcalltreturnt	exception(t	add_event(Rtframeteventtarg((s2/usr/local/lib/python2.5/test/test_profilehooks.pytcallback
s


cCsŽ|djotidƒ}ny|ii|ƒ}Wn2tj
o&t|iƒ}|ii|ƒnX|ii||t	|ƒfƒdS(sAdd an event to the log.iN(
tNonetsyst	_getframeRtindext
ValueErrortlentappendRtident(RRR
tframeno((s2/usr/local/lib/python2.5/test/test_profilehooks.pyR	s
cCs^t|iiƒttƒg}d|_g}|iD]"}|d|jo||q5q5~S(sRemove calls to add_event().iN(RR	tim_funcRRR(Rt
disallowedt_[1]titem((s2/usr/local/lib/python2.5/test/test_profilehooks.pyt
get_events s	N(t__name__t
__module__RR
RR	R(((s2/usr/local/lib/python2.5/test/test_profilehooks.pyRs		
tProfileSimulatorcBszeZd„Zd„Zd„Zd„Zd„Zd„Zhed<ed<ed<ed	<ed
<ed<ZRS(cCs#||_g|_ti|ƒdS(N(ttestcasetstackRR(RR((s2/usr/local/lib/python2.5/test/test_profilehooks.pyR)s		cCs|i|||ƒdS(N(tdispatch(RR
RR((s2/usr/local/lib/python2.5/test/test_profilehooks.pyR
.scCs$|id|ƒ|ii|ƒdS(NR(R	R R(RR
((s2/usr/local/lib/python2.5/test/test_profilehooks.pyt
trace_call2scCs!|id|ƒ|iiƒdS(NR(R	R tpop(RR
((s2/usr/local/lib/python2.5/test/test_profilehooks.pyttrace_return6scCs|iidƒdS(Ns2the profiler should never receive exception events(Rtfail(RR
((s2/usr/local/lib/python2.5/test/test_profilehooks.pyttrace_exception:s	cCsdS(N((RR
((s2/usr/local/lib/python2.5/test/test_profilehooks.pyt
trace_pass>sRRRtc_calltc_returntc_exception(	RRRR
R"R$R&R'R!(((s2/usr/local/lib/python2.5/test/test_profilehooks.pyR(s											tTestCaseBasecBseZd„ZRS(cCsSt||iƒƒ}||jo-|idti|ƒti|ƒfƒndS(Ns'Expected events:
%s
Received events:
%s(tcapture_eventstnew_watcherR%tpprinttpformat(RtcallabletexpectedR((s2/usr/local/lib/python2.5/test/test_profilehooks.pytcheck_eventsLs
	(RRR2(((s2/usr/local/lib/python2.5/test/test_profilehooks.pyR+KstProfileHookTestCasecBs†eZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d	„Zd
„Zd„Z
d„Zd
„ZRS(cCstƒS(N(R(R((s2/usr/local/lib/python2.5/test/test_profilehooks.pyR-TscCsAd„}t|ƒ}|i|dd|fdd|fgƒdS(NcSsdS(N((tp((s2/usr/local/lib/python2.5/test/test_profilehooks.pytfXsiRR(RR2(RR5tf_ident((s2/usr/local/lib/python2.5/test/test_profilehooks.pyttest_simpleWs	cCsAd„}t|ƒ}|i|dd|fdd|fgƒdS(NcSsdddS(Nii((R4((s2/usr/local/lib/python2.5/test/test_profilehooks.pyR5`siRR(RR2(RR5R6((s2/usr/local/lib/python2.5/test/test_profilehooks.pyttest_exception_s	cCsAd„}t|ƒ}|i|dd|fdd|fgƒdS(NcSsyddWnnXdS(Nii((R4((s2/usr/local/lib/python2.5/test/test_profilehooks.pyR5hsiRR(RR2(RR5R6((s2/usr/local/lib/python2.5/test/test_profilehooks.pyttest_caught_exceptiongs	cCsAd„}t|ƒ}|i|dd|fdd|fgƒdS(NcSsyddWnnXdS(Nii((R4((s2/usr/local/lib/python2.5/test/test_profilehooks.pyR5qsiRR(RR2(RR5R6((s2/usr/local/lib/python2.5/test/test_profilehooks.pyttest_caught_nested_exceptionps	cCsAd„}t|ƒ}|i|dd|fdd|fgƒdS(NcSsdddS(Nii((R4((s2/usr/local/lib/python2.5/test/test_profilehooks.pyR5zsiRR(RR2(RR5R6((s2/usr/local/lib/python2.5/test/test_profilehooks.pyttest_nested_exceptionys	csŒd„‰‡fd†}tˆƒ}t|ƒ}|i|dd|fdd|fdd|fdd|fdd|fdd|fgƒdS(NcSsdddS(Nii((R4((s2/usr/local/lib/python2.5/test/test_profilehooks.pyR5…scs4yˆ|ƒWnyˆ|ƒWq0q0XnXdS(N((R4(R5(s2/usr/local/lib/python2.5/test/test_profilehooks.pytg‡siRiRi(RR2(RR<R6tg_ident((R5s2/usr/local/lib/python2.5/test/test_profilehooks.pyttest_exception_in_except_clause„s	c
s€d„‰‡fd†}tˆƒ}t|ƒ}|i|dd|fdd|fdd|fdd|fdd|fgƒdS(NcSsdddS(Nii((R4((s2/usr/local/lib/python2.5/test/test_profilehooks.pyR5˜scs#zˆ|ƒWd|idƒXdS(Nsfalling through(R	(R4(R5(s2/usr/local/lib/python2.5/test/test_profilehooks.pyR<šsiRiRsfalling through(RR2(RR<R6R=((R5s2/usr/local/lib/python2.5/test/test_profilehooks.pyttest_exception_propogation—s	cCsAd„}t|ƒ}|i|dd|fdd|fgƒdS(NcSs"yddWnddnXdS(Nii((R4((s2/usr/local/lib/python2.5/test/test_profilehooks.pyR5§siRR(RR2(RR5R6((s2/usr/local/lib/python2.5/test/test_profilehooks.pyttest_raise_twice¦s	cCsAd„}t|ƒ}|i|dd|fdd|fgƒdS(NcSsyddWn
‚nXdS(Nii((R4((s2/usr/local/lib/python2.5/test/test_profilehooks.pyR5°siRR(RR2(RR5R6((s2/usr/local/lib/python2.5/test/test_profilehooks.pyttest_raise_reraise¯s	cCsAd„}t|ƒ}|i|dd|fdd|fgƒdS(NcSs
tƒ‚dS(N(t	Exception(R4((s2/usr/local/lib/python2.5/test/test_profilehooks.pyR5¹siRR(RR2(RR5R6((s2/usr/local/lib/python2.5/test/test_profilehooks.pyt
test_raise¸s	cs
d„‰‡fd†‰‡fd†‰‡fd†‰‡fd†}tˆƒ}tˆƒ}tˆƒ}tˆƒ}t|ƒ}|i|dd|fdd|fd	d|fd
d|fdd|fdd|fd
d|fd	d|fdd|fdd|fg
ƒdS(
NcSsdddS(Nii((((s2/usr/local/lib/python2.5/test/test_profilehooks.pyR5ÁscsˆƒdS(N(((R5(s2/usr/local/lib/python2.5/test/test_profilehooks.pyR<ÃscsˆƒdS(N(((R<(s2/usr/local/lib/python2.5/test/test_profilehooks.pythÅscsˆƒdS(N(((RD(s2/usr/local/lib/python2.5/test/test_profilehooks.pytiÇscsˆƒdS(N((R4(RE(s2/usr/local/lib/python2.5/test/test_profilehooks.pytjÉsiRiiiiR(RR2(RRFR6R=th_identti_identtj_ident((R<R5RERDs2/usr/local/lib/python2.5/test/test_profilehooks.pyttest_distant_exceptionÀs(	c
s¤d„‰‡fd†}tˆƒ}t|ƒ}|i|dd|fdd|fdd|fdd|fdd|fdd|fdd|fdd|fgƒdS(Ncss xtdƒD]}|Vq
WdS(Ni(trange(RE((s2/usr/local/lib/python2.5/test/test_profilehooks.pyR5Ýs
csxˆƒD]}q
WdS(N((R4RE(R5(s2/usr/local/lib/python2.5/test/test_profilehooks.pyR<às
iRiR(RR2(RR<R6R=((R5s2/usr/local/lib/python2.5/test/test_profilehooks.pyttest_generatorÜs	c
s¤d„‰‡fd†}tˆƒ}t|ƒ}|i|dd|fdd|fdd|fdd|fdd|fdd|fdd|fdd|fgƒdS(Ncss&xtdƒD]}|Vq
Wt‚dS(Ni(RKt
StopIteration(RE((s2/usr/local/lib/python2.5/test/test_profilehooks.pyR5ós
	csxˆƒD]}q
WdS(N((R4RE(R5(s2/usr/local/lib/python2.5/test/test_profilehooks.pyR<÷s
iRiR(RR2(RR<R6R=((R5s2/usr/local/lib/python2.5/test/test_profilehooks.pyttest_stop_iterationòs	(RRR-R7R8R9R:R;R>R?R@RARCRJRLRN(((s2/usr/local/lib/python2.5/test/test_profilehooks.pyR3Ss																	tProfileSimulatorTestCasecBs5eZd„Zd„Zd„Zd„Zd„ZRS(cCs
t|ƒS(N(R(R((s2/usr/local/lib/python2.5/test/test_profilehooks.pyR-
scCsAd„}t|ƒ}|i|dd|fdd|fgƒdS(NcSsdS(N((R4((s2/usr/local/lib/python2.5/test/test_profilehooks.pyR5siRR(RR2(RR5R6((s2/usr/local/lib/python2.5/test/test_profilehooks.pyR7
s	cCsAd„}t|ƒ}|i|dd|fdd|fgƒdS(NcSsdddS(Nii((R4((s2/usr/local/lib/python2.5/test/test_profilehooks.pyR5siRR(RR2(RR5R6((s2/usr/local/lib/python2.5/test/test_profilehooks.pyttest_basic_exceptions	cCsAd„}t|ƒ}|i|dd|fdd|fgƒdS(NcSsyddWnnXdS(Nii((R4((s2/usr/local/lib/python2.5/test/test_profilehooks.pyR5siRR(RR2(RR5R6((s2/usr/local/lib/python2.5/test/test_profilehooks.pyR9s	cs
d„‰‡fd†‰‡fd†‰‡fd†‰‡fd†}tˆƒ}tˆƒ}tˆƒ}tˆƒ}t|ƒ}|i|dd|fdd|fd	d|fd
d|fdd|fdd|fd
d|fd	d|fdd|fdd|fg
ƒdS(
NcSsdddS(Nii((((s2/usr/local/lib/python2.5/test/test_profilehooks.pyR5'scsˆƒdS(N(((R5(s2/usr/local/lib/python2.5/test/test_profilehooks.pyR<)scsˆƒdS(N(((R<(s2/usr/local/lib/python2.5/test/test_profilehooks.pyRD+scsˆƒdS(N(((RD(s2/usr/local/lib/python2.5/test/test_profilehooks.pyRE-scsˆƒdS(N((R4(RE(s2/usr/local/lib/python2.5/test/test_profilehooks.pyRF/siRiiiiR(RR2(RRFR6R=RGRHRI((R<R5RERDs2/usr/local/lib/python2.5/test/test_profilehooks.pyRJ&s(	(RRR-R7RPR9RJ(((s2/usr/local/lib/python2.5/test/test_profilehooks.pyRO	s
					cCs6t|dƒo
|i}n
|i}|i|ifS(Ntf_code(thasattrRQt	func_codetco_firstlinenotco_name(tfunctiontcode((s2/usr/local/lib/python2.5/test/test_profilehooks.pyRCs
	cCsy||ƒWnnXdS(N((R5R4((s2/usr/local/lib/python2.5/test/test_profilehooks.pytprotectKscCsˆytiƒWntj
onXtidƒ‚|djo
tƒ}nti|iƒt||ƒtidƒ|i	ƒdd!S(Ns(sys.setprofile() did not raise TypeErroriiÿÿÿÿ(
Rt
setprofilet	TypeErrorRt
TestFailedRRR
RXR(R0R4((s2/usr/local/lib/python2.5/test/test_profilehooks.pyR,Rs	



cCs#ddk}|it|ƒƒdS(Niÿÿÿÿ(R.R,(R0R.((s2/usr/local/lib/python2.5/test/test_profilehooks.pytshow_eventscscCstittƒdS(N(Rtrun_unittestR3RO(((s2/usr/local/lib/python2.5/test/test_profilehooks.pyt	test_mainhst__main__((R.RtunittestttestRRRtTestCaseR+R3RORRXt
protect_identRR,R\R^R(((s2/usr/local/lib/python2.5/test/test_profilehooks.pys<module>s  #¶:				


Man Man