403Webshell
Server IP : 118.27.122.248  /  Your IP : 216.73.216.15
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_compileall.pyc
�
�q2_c@s�ddlZddlZddlZddlZddlZddlZddlZddlmZddl	Z	de	j
fd��YZd�Ze
dkr�e�ndS(i����N(ttest_supporttCompileallTestscBsbeZd�Zd�Zd�Zejeed�d�d��Z	d�Z
d�Zd�ZRS(	cCs�tj�|_tjj|jd�|_|jtr<dnd|_t	|jd��}|j
d�WdQXtjj|jd�|_|jtr�dnd|_t
j|j|j�dS(Ns_test.pytctotwsx = 123
s	_test2.py(ttempfiletmkdtempt	directorytostpathtjointsource_patht	__debug__tbc_pathtopentwritetsource_path2tbc_path2tshutiltcopyfile(tselftfile((s9/opt/alt/python27/lib64/python2.7/test/test_compileall.pytsetUpscCstj|j�dS(N(RtrmtreeR(R((s9/opt/alt/python27/lib64/python2.7/test/test_compileall.pyttearDownscCsjt|jd��}|jd�}WdQXttj|j�j�}tj	dt
j�|�}||fS(Ntrbis<4sl(RR
treadtintRtstatRtst_mtimetstructtpacktimpt	get_magic(RRtdatatmtimetcompare((s9/opt/alt/python27/lib64/python2.7/test/test_compileall.pyR"s
Rstest needs os.stat()cCs�tj|j�|j|j��t|jd��}|j�t|�}WdQXt|jd��!}|j	|�|j	|�WdQX|j
|j��tj|j
dtdt�|j|j��dS(sOCheck that compileall recreates bytecode when the new metadata is
        used.RNtwbtforcetquiet(t
py_compiletcompileRtassertEqualR"RR
RtlenRtassertNotEqualt
compilealltcompile_dirRtFalsetTruet
assertTrue(RtmetadataRtbc((s9/opt/alt/python27/lib64/python2.7/test/test_compileall.pytrecreation_check"s
cCs&|jtjdtj�d��dS(Ns<4sli(R4RRR R!(R((s9/opt/alt/python27/lib64/python2.7/test/test_compileall.pyt
test_mtime1scCs|jd�dS(Ns(R4(R((s9/opt/alt/python27/lib64/python2.7/test/test_compileall.pyttest_magic_number5scCsx5|j|jfD]!}ytj|�WqqXqWtj|jdtdt�|j	tj
j|j�o�tj
j|j��tj|j�tj|j
dtdt�|j	tj
j|j�o�tj
j|j��tj|j�tj|j�dS(NR&R'(R
RRtunlinkR-tcompile_fileRR/R0R1R	tisfileR.R(Rtfn((s9/opt/alt/python27/lib64/python2.7/test/test_compileall.pyttest_compile_files9s(
t__name__t
__module__RRR"tunittestt
skipUnlessthasattrRR4R5R6R;(((s9/opt/alt/python27/lib64/python2.7/test/test_compileall.pyRs	
		$		cCstjt�dS(N(Rtrun_unittestR(((s9/opt/alt/python27/lib64/python2.7/test/test_compileall.pyt	test_mainJst__main__(R-R RR(RRRttestRR>tTestCaseRRBR<(((s9/opt/alt/python27/lib64/python2.7/test/test_compileall.pyt<module>s>	

Youez - 2016 - github.com/yon3zu
LinuXploit