Your IP : 13.59.36.4
3
��JZ�? � @ s� d Z ddlZddlZddlZddlZddlZddlZddlZddlZddlm Z ddlm
Z
ddlmZ ddlmZ ddlm
Z
ddlmZ dd lmZ dd
lmZ ddlmZ ddlmZ dd
lmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlm Z ddlm!Z! dd� Z"dd� Z#dd� Z$ej%e d �G d!d"� d"ej&��Z'ej%e d �G d#d$� d$ej&��Z(e)d%k�r�ee*� dS )&zPOSIX specific tests.� N)�AIX)�BSD)�LINUX)�OPENBSD)�OSX)�POSIX)�SUNOS)�callable)�PY3)�APPVEYOR)�get_kernel_version)�get_test_subprocess)�mock)�
PYTHON_EXE)�
reap_children)�retry_before_failing)�run_test_module_by_name)�sh)�skip_on_access_denied)�TRAVIS)�unittest)�wait_for_pid)�whichc C sp t s| jdd�} tr | jdd�} tr0| jdd�} t| �}t sN|jd�d j� }yt|�S tk
rj |S X d S )
zkExpects a ps command with a -o argument and parse the result
returning only the value of interest.
z --no-headers � z-o startz-o stimez-o rssz -o rssize�
� N) r �replacer r r �split�strip�int�
ValueError)�cmd�output� r# �"/usr/lib64/python3.6/test_posix.py�ps+ s r% c C s&