[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@18.222.182.226: ~ $


Cs[�
�
@sqdZddlZddlZddlZddlZddlZyddlmZWn"ek
rzddl	mZYnXddl
mZddl
mZej
jej
je��ZdZgZejdd�dkr�ejd	d
ddg�nEejdd�dks,ejdd�dkr?ejd	dg�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��ZmockcCsyddl}Wn�tk
rddl}tjdd�}tj|���tdt|j	f�t
|d�r�|j�}nd}|r�td|�ni}t
t|�}|j�}|j|�|j�td�tjdt|j	f�}|SWdQRXYnXdS)	Nr�suffixz.pyzdownloading %s to %s�_create_unverified_context�contextzinstalling pipz%s %s --user)�pip�ImportError�ssl�tempfile�NamedTemporaryFile�
contextlib�closing�print�GET_PIP_URL�name�hasattrr�dictr�read�write�flush�os�systemr)r
r�f�ctx�kwargsZreq�data�code�r#�/__main__.py�install_pip$s$



r%cCsy|dkrt}t|�}|ruttd�}|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}tjd|dd�}|jddddd	d
dd�|j�\}}|jrpt�t�n_xUtD]M}yt	|j
d
�d�Wqwtk
r�tj
d|tf�YqwXqwWt�dS)Nz%s -m psutil.tests [opts]�usage�descriptionzrun unit testsz-iz--install-deps�action�
store_true�defaultF�helpz%don't print status messages to stdoutz==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$�mainIs 
	


	r;)rr)rr)r	r)�__doc__rr4rr*rZurllib.requestrr�urllib2Zpsutil.testsrr�path�abspath�dirname�__file__ZHERErr(�version_info�extendr%r-r;r#r#r#r$�<module>s,
2

Filemanager

Name Type Size Permission Actions
__init__.cpython-35.opt-1.pyc File 31.72 KB 0644
__init__.cpython-35.pyc File 33.22 KB 0644
__main__.cpython-35.opt-1.pyc File 2.66 KB 0644
__main__.cpython-35.pyc File 2.66 KB 0644
test_aix.cpython-35.opt-1.pyc File 3.48 KB 0644
test_aix.cpython-35.pyc File 3.48 KB 0644
test_bsd.cpython-35.opt-1.pyc File 20.06 KB 0644
test_bsd.cpython-35.pyc File 20.06 KB 0644
test_connections.cpython-35.opt-1.pyc File 15.7 KB 0644
test_connections.cpython-35.pyc File 16.1 KB 0644
test_contracts.cpython-35.opt-1.pyc File 23.32 KB 0644
test_contracts.cpython-35.pyc File 24.36 KB 0644
test_linux.cpython-35.opt-1.pyc File 69.39 KB 0644
test_linux.cpython-35.pyc File 70.81 KB 0644
test_memory_leaks.cpython-35.opt-1.pyc File 22.99 KB 0644
test_memory_leaks.cpython-35.pyc File 22.99 KB 0644
test_misc.cpython-35.opt-1.pyc File 35.69 KB 0644
test_misc.cpython-35.pyc File 36.91 KB 0644
test_osx.cpython-35.opt-1.pyc File 11.44 KB 0644
test_osx.cpython-35.pyc File 11.44 KB 0644
test_posix.cpython-35.opt-1.pyc File 14.02 KB 0644
test_posix.cpython-35.pyc File 14.18 KB 0644
test_process.cpython-35.opt-1.pyc File 43.88 KB 0644
test_process.cpython-35.pyc File 44.94 KB 0644
test_sunos.cpython-35.opt-1.pyc File 1.53 KB 0644
test_sunos.cpython-35.pyc File 1.53 KB 0644
test_system.cpython-35.opt-1.pyc File 27.54 KB 0644
test_system.cpython-35.pyc File 29.27 KB 0644
test_unicode.cpython-35.opt-1.pyc File 11.7 KB 0644
test_unicode.cpython-35.pyc File 11.76 KB 0644
test_windows.cpython-35.opt-1.pyc File 31.05 KB 0644
test_windows.cpython-35.pyc File 31.31 KB 0644