403Webshell
Server IP : 118.27.122.248  /  Your IP : 216.73.216.153
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_popen.cpython-36.pyc
3

�w2_��@shdZddlZddlmZddlZddlZejZdekrBdedZGdd�dej�Z	e
dkrdej�dS)	zQBasic tests for os.popen()

  Particularly useful for platforms that fake popen.
�N)�support� �"c@s<eZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
S)�	PopenTestc
CsNd}|t|f}tj|��}|j�}WdQRXt|�dd�}|j||�dS)Nz&%s -c "import sys; print(sys.argv)" %s�)�python�os�popen�read�eval�assertEqual)�selfZcmdlineZexpected�cmd�p�dataZgot�r�4/opt/alt/python36/lib64/python3.6/test/test_popen.py�_do_test_commandlineszPopenTest._do_test_commandlinecCsN|jttj�|jdddg�|jddddg�|jddddg�tj�dS)	Nzfoo barZfooZbarz foo "spam and eggs" "silly walk"z
spam and eggsz
silly walkzfoo "a \"quoted\" arg" barza "quoted" arg)ZassertRaises�	TypeErrorrr	rrZ
reap_children)r
rrr�
test_popens
zPopenTest.test_popencCsR|jtjd�j�d�tjdkr8|jtjd�j�d�n|jtjd�j�d�dS)Nzexit 0�ntzexit 42�*�i*)rrr	�close�name)r
rrr�test_return_code-s
zPopenTest.test_return_codec
Cs*tjd��}|j|j�d�WdQRXdS)Nz
echo hellozhello
)rr	rr
)r
�frrr�test_contextmanager4szPopenTest.test_contextmanagerc
Cs,tjd��}|jt|�dg�WdQRXdS)Nz
echo hellozhello
)rr	r�list)r
rrrr�test_iterating8szPopenTest.test_iteratingc	Cs tjdddd��WdQRXdS)Nzexit 0�wr)r�mode�	buffering���)rr	)r
rrr�
test_keywords<szPopenTest.test_keywordsN)	�__name__�
__module__�__qualname__rrrrrr$rrrrrsr�__main__)�__doc__ZunittestZtestrr�sys�
executablerZTestCaserr%�mainrrrr�<module>s-

Youez - 2016 - github.com/yon3zu
LinuXploit