Uname:Linux ip-10-0-5-176 6.8.0-1057-aws #60~22.04.1-Ubuntu SMP Wed May 27 08:16:59 UTC 2026 x86_64

403WebShell
403Webshell
Server IP : 3.111.61.48  /  Your IP : 216.73.216.67
Web Server : Apache
System : Linux ip-10-0-5-176 6.8.0-1057-aws #60~22.04.1-Ubuntu SMP Wed May 27 08:16:59 UTC 2026 x86_64
User : ubuntu ( 1000)
PHP Version : 8.2.31
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python3.10/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3.10/test/__pycache__/test_popen.cpython-310.pyc
o

�9jO�@s�dZddlZddlmZddlZddlZeed�se�d��ejZ	de	vr+de	dZ	Gdd	�d	ej
�Zed
kr>e�
�dSdS)zQBasic tests for os.popen()

  Particularly useful for platforms that fake popen.
�N)�support�popenzneed os.popen()� �"c@s<eZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
S)�	PopenTestcCsbd}|t|f}t�|��}|��}Wd�n1swYt|�dd�}|�||�dS)Nz&%s -c "import sys; print(sys.argv)" %s�)�python�osr�read�eval�assertEqual)�self�cmdline�expected�cmd�p�data�got�r�&/usr/lib/python3.10/test/test_popen.py�_do_test_commandlines
�zPopenTest._do_test_commandlinecCsJ|�ttj�|�dddg�|�dgd��|�dgd��t��dS)Nzfoo bar�foo�barz foo "spam and eggs" "silly walk")rz
spam and eggsz
silly walkzfoo "a \"quoted\" arg" bar)rza "quoted" argr)�assertRaises�	TypeErrorr	rrr�
reap_children�r
rrr�
test_popen s���zPopenTest.test_popencCsT|�t�d���d�t�d���}tjdkr|�|d�dS|�t�|�d�dS)N�exit 0zexit 42�nt�*)rr	r�close�name�waitstatus_to_exitcode)r
�statusrrr�test_return_code0s

zPopenTest.test_return_codecCs@t�d��}|�|��d�Wd�dS1swYdS�Nz
echo hellozhello
)r	rrr
�r
�frrr�test_contextmanager8s"�zPopenTest.test_contextmanagercCsBt�d��}|�t|�dg�Wd�dS1swYdSr&)r	rr�listr'rrr�test_iterating<s"�zPopenTest.test_iteratingcCs6tjdddd��	Wd�dS1swYdS)Nr�w���)r�mode�	buffering)r	rrrrr�
test_keywords@s"�zPopenTest.test_keywordsN)	�__name__�
__module__�__qualname__rrr%r)r+r0rrrrrsr�__main__)�__doc__�unittest�testrr	�sys�hasattr�SkipTest�
executabler�TestCaserr1�mainrrrr�<module>s

.�

Youez - 2016 - github.com/yon3zu
LinuXploit