403Webshell
Server IP : 118.27.122.248  /  Your IP : 216.73.217.6
Web Server : Apache
System : Linux web0264.sh.tyo1 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64
User : c9415830 ( 11735)
PHP Version : 8.4.17
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /opt/alt/python27/lib64/python2.7/test/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/alt/python27/lib64/python2.7/test/test_hotshot.pyc
�
�q2_c@s�ddlZddlZddlZddlZddlZddlZddlmZejdde	�Z
ddlmZm
Z
mZddl
mZd�Zde
jjfd	��YZd
ejfd��YZd�Zed
kr�e�ndS(i����N(ttest_supportthotshott
deprecated(tENTERtEXITtLINE(tstatscCs.|r&tjjtjj|��dS|SdS(Ni(tostpathtsplitexttbasename(tfn((s6/opt/alt/python27/lib64/python2.7/test/test_hotshot.pyt
shortfilenames tUnlinkingLogReadercBs#eZdZd�Zdd�ZRS(sMExtend the LogReader so the log file is unlinked when we're
    done with it.cCs#||_tjjj||�dS(N(t_UnlinkingLogReader__logfnRtlogt	LogReadert__init__(tselftlogfn((s6/opt/alt/python27/lib64/python2.7/test/test_hotshot.pyRs	cCsLytjjj|�SWn.tk
rG|j�tj|j��nXdS(N(	RRRtnextt
StopIterationtcloseRtunlinkR(Rtindex((s6/opt/alt/python27/lib64/python2.7/test/test_hotshot.pyR"s

N(t__name__t
__module__t__doc__RtNoneR(((s6/opt/alt/python27/lib64/python2.7/test/test_hotshot.pyR
s	tHotShotTestCasecBs}eZddd�Zd�Zd�Zd�Zdd�Zd�Zd�Z	d	�Z
d
�Zd�Zd�Z
d
�ZRS(iicCs"tj|_tj|j||�S(N(RtTESTFNRRtProfile(Rt
lineeventstlinetimings((s6/opt/alt/python27/lib64/python2.7/test/test_hotshot.pytnew_profiler,scCs
t|j�S(N(R
R(R((s6/opt/alt/python27/lib64/python2.7/test/test_hotshot.pyt
get_logreader0scCs[g}xN|j�D]@}|\}\}}}}|j|t|�||ff�qW|S(N(R#tappendR(RtLteventtwhattfilenametlinenotfuncnamettdelta((s6/opt/alt/python27/lib64/python2.7/test/test_hotshot.pytget_events_wotime3s
&cCsH|j�}||krD|jdtj|�tj|�f�ndS(Ns6events did not match expectation; got:
%s
expected:
%s(R,tfailtpprinttpformat(Rtexpectedtevents((s6/opt/alt/python27/lib64/python2.7/test/test_hotshot.pytcheck_events:s
cCs~|dkr|j�}n|j|jj�|j|�|j|jj�|j�|j|jj�|j|�dS(N(RR"t
assertTruet_proftclosedtruncallRR2(RtcallableR1tprofiler((s6/opt/alt/python27/lib64/python2.7/test/test_hotshot.pytrun_testAs

cCsld�}|j�}|j||�|j�|j�}|j}t|�|j|ddgk�dS(NcSs|jdd�dS(Nstest-keys
test-value(taddinfo(tp((s6/opt/alt/python27/lib64/python2.7/test/test_hotshot.pytfLsstest-keys
test-value(R"R6RR#t_infotlistR3(RR<R8Rtinfo((s6/opt/alt/python27/lib64/python2.7/test/test_hotshot.pyttest_addinfoKs	
	
c
s�d���fd�}�jj}|jj}td|dfftd|ddfftd|dfftd|ddfftd|ddfftd|dfftd|dffg}|j|||jdd��dS(	NcSsd}d}dS(Nii((tytx((s6/opt/alt/python27/lib64/python2.7/test/test_hotshot.pyR<Wscs��dS(N(((R<(s6/opt/alt/python27/lib64/python2.7/test/test_hotshot.pytgZsttest_hotshotRCiR<iR (t	func_codetco_firstlinenoRRRR9R"(RRCtf_linenotg_linenoR1((R<s6/opt/alt/python27/lib64/python2.7/test/test_hotshot.pyttest_line_numbersVs	cCs>|j�}|j�|j�|j�tj|j�dS(N(R"tstarttstopRRRR(RR8((s6/opt/alt/python27/lib64/python2.7/test/test_hotshot.pyttest_start_stophs



cCs�ddl}ddl}|j}tjj}z?d|_|jt|tj	�|`|jt|tj	�Wd||_|jj
tj	�r�|jtj	�nXdS(Ni����tabc(tsysRRRt_hotshottcoveragetassertRaisestRuntimeErrorRRtexiststremove(RRNRt	orig_pathRP((s6/opt/alt/python27/lib64/python2.7/test/test_hotshot.pyttest_bad_sys_pathrs			cCsKtj�}z#|jttftj|j�Wd|j�Xt	j
�dS(N(ttempfiletNamedTemporaryFileRQtIOErrortEOFErrorROt	logreadertnameRtgctcollect(Rt	emptyfile((s6/opt/alt/python27/lib64/python2.7/test/test_hotshot.pyttest_logreader_eof_error�scCsWd�}|j�}||�|j�|j�tj|j�tj|j�dS(NcSs|j�dS(N(RJ(tprof((s6/opt/alt/python27/lib64/python2.7/test/test_hotshot.pyRJ�s(R"RKRRtloadRRR(RRJR8((s6/opt/alt/python27/lib64/python2.7/test/test_hotshot.pyttest_load_stats�s	


cCs-|j�}|jt|jddd�dS(NtAi�(R"RQt
ValueErrorR:(RR;((s6/opt/alt/python27/lib64/python2.7/test/test_hotshot.pyttest_large_info�sN(RRR"R#R,R2RR9R@RIRLRVR`RcRf(((s6/opt/alt/python27/lib64/python2.7/test/test_hotshot.pyR+s			
			
				cCstjt�dS(N(Rtrun_unittestR(((s6/opt/alt/python27/lib64/python2.7/test/test_hotshot.pyt	test_main�st__main__(RR.tunittestRWROR]ttestRt
import_moduletTrueRthotshot.logRRRRRRRR
tTestCaseRRhR(((s6/opt/alt/python27/lib64/python2.7/test/test_hotshot.pyt<module>s	
r	

Youez - 2016 - github.com/yon3zu
LinuXploit