403Webshell
Server IP : 118.27.122.248  /  Your IP : 216.73.216.240
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/python36/lib64/python3.6/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/alt/python36/lib64/python3.6/test/__pycache__/test_symbol.cpython-36.opt-1.pyc
3

x2_X�@s|ddlZddlmZddlZddlZddlZejd�Zejj	ejj
e�dddd�ZdZ
Gdd	�d	ej�Zed
krxej�dS)�N)�supportz	symbol.pyz..ZIncludez
graminit.hzsymbol_test.pyc@sBeZdZdd�Zdd�Zdd�Zejej	j
e�d�dd	��Zd
S)�TestSymbolGenerationcCsjt|��}|j�}WdQRXt|d��:}|j|d|jd�d��|j||jd�d��WdQRXdS)N�wz#--start constants--
�z#--end constants--
)�open�	readlines�
writelines�index)�selfZsource_fileZ	dest_file�fp�lines�r
�5/opt/alt/python36/lib64/python3.6/test/test_symbol.py�$_copy_file_without_generated_symbolss

z9TestSymbolGeneration._copy_file_without_generated_symbolscCs0tjtjt||gtjd�}|j�d}|j|fS)N)�stderrr)�
subprocess�Popen�sys�
executable�SYMBOL_FILE�PIPEZcommunicate�
returncode)r
Zgrammar_fileZtarget_symbol_py_file�procrr
r
r�_generate_symbolssz&TestSymbolGeneration._generate_symbolscCsHt|��}|j�}WdQRXt|��}|j�}WdQRX|j||�dS)N)rr�assertEqual)r
Zfile1Zfile2rZlines1Zlines2r
r
r�
compare_filess


z"TestSymbolGeneration.compare_filesz+test only works from source build directorycCsXtj}|jtj|�|jt|�|jt|�\}}|jd|�|jd|�|j	t|�dS)N�r)
rZTESTFNZ
addCleanup�unlinkrrr�GRAMMAR_FILErr)r
�outputZexitcoderr
r
r�!test_real_grammar_and_symbol_file&sz6TestSymbolGeneration.test_real_grammar_and_symbol_fileN)
�__name__�
__module__�__qualname__rrr�unittestZskipIf�os�path�existsrr r
r
r
rrs
r�__main__)r$Ztestrr%rrZfindfilerr&�join�dirname�__file__rZTEST_PY_FILEZTestCaserr!�mainr
r
r
r�<module>s
'

Youez - 2016 - github.com/yon3zu
LinuXploit