HEX
Server: Apache
System: Linux dinesh8189 5.15.98-grsec-sharedvalley-2.lc.el8.x86_64 #1 SMP Thu Mar 9 09:07:30 -03 2023 x86_64
User: cgmgerenciamento1 (814285)
PHP: 8.1.26
Disabled: apache_child_terminate,dl,escapeshellarg,escapeshellcmd,exec,link,mail,openlog,passthru,pcntl_alarm,pcntl_exec,pcntl_fork,pcntl_get_last_error,pcntl_getpriority,pcntl_setpriority,pcntl_signal,pcntl_signal_dispatch,pcntl_sigprocmask,pcntl_sigtimedwait,pcntl_sigwaitinfo,pcntl_strerror,pcntl_wait,pcntl_waitpid,pcntl_wexitstatus,pcntl_wifexited,pcntl_wifsignaled,pcntl_wifstopped,pcntl_wstopsig,pcntl_wtermsig,php_check_syntax,php_strip_whitespace,popen,proc_close,proc_open,shell_exec,symlink,system
Upload Files
File: //lib64/python3.6/site-packages/psutil/tests/__pycache__/__main__.cpython-36.pyc
3

��JZ�
�
@s:dZddlZddlZddlZddlZddlZddlZyddlmZWn e	k
rdddl
mZYnXddlmZddlm
Z
ejjejje��ZdZgZejdd�dkr�ejd	d
ddg�nVejdd�dks�ejdd�dk�r�ejd	dg�n ejdd�dk�rejd	g�dd�Zddd�Zdd�Ze�dS)z?
Run unit tests. This is invoked by:

$ python -m psutil.tests
�N)�urlopen)�
PYTHON_EXE)�	run_suitez$https://bootstrap.pypa.io/get-pip.py��Z	ipaddressZ	unittest2�argparsezmock==1.0.1��ZmockcCs�yddl}Wn�tk
r�tjdd�}tj|���tdt|jf�t	t
d�rZt
j�}nd}|rlt|d�ni}t
tf|�}|j�}|j|�|j�td�tjdt|jf�}|SQRXYnXdS)	Nrz.py)�suffixzdownloading %s to %s�_create_unverified_context)�contextzinstalling pipz%s %s --user)�pip�ImportError�tempfileZNamedTemporaryFile�
contextlib�closing�print�GET_PIP_URL�name�hasattr�sslr�dictr�read�write�flush�os�systemr)r
�fZctx�kwargsZreq�data�code�r!� /usr/lib64/python3.6/__main__.py�install_pip&s"


r#cCsV|dkrt}t|�}|rRttd�}|s*dnd}t�tjdt|dj|�f�}|SdS)z"Install test dependencies via pip.NZreal_prefixz--user�z!%s -m pip install %s --upgrade %s� )	�	TEST_DEPS�setr�sysr#rrr�join)ZdepsZis_venv�optsr r!r!r"�install_test_deps<s
r+cCs�dt}tj|dd�}|jdddddd	�|j�\}}|jrJt�t�nRxJtD]B}yt	|j
d
�d�WqPtk
r�tj
d|tf�YqPXqPWt�dS)
Nz%s -m psutil.tests [opts]zrun unit tests)�usage�descriptionz-iz--install-deps�
store_trueFz%don't print status messages to stdout)�action�default�helpz==rz>%r lib is not installed; run %s -m psutil.tests --install-deps)r�optparseZOptionParserZ
add_option�
parse_argsZinstall_depsr#r+r&�
__import__�splitrr(�exitr)r,�parserr*�argsZdepr!r!r"�mainJs 
r9)rr)rr)r	r)r	r	)N)�__doc__rr2rrr(rZurllib.requestrrZurllib2Zpsutil.testsrr�path�abspath�dirname�__file__ZHERErr&�version_info�extendr#r+r9r!r!r!r"�<module>
s2&