관리-도구
편집 파일: __main__.cpython-36.pyc
3 ��JZ� � @ s: d Z ddlZddlZddlZddlZddlZddlZyddlmZ W n e k rd ddl mZ Y nX ddlmZ ddlm Z ejjejje��ZdZg Zejdd� dkr�ejd d ddg� 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� � Zmockc C s� ydd l } W n� tk r� tjdd�}tj|��� tdt|jf � t t d�rZt j� }nd }|rlt|d�ni }t tf|�}|j� }|j|� |j� td� tjdt|jf �}|S Q R X Y nX d S ) Nr z.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&