D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
python38
/
lib64
/
python3.8
/
site-packages
/
psutil
/
tests
/
__pycache__
/
Filename :
test_bsd.cpython-38.pyc
back
Copy
U �=�_�P � @ s� d Z ddlZddlZddlZddlZddlZddlmZ ddlmZ ddlmZ ddlm Z ddl mZ ddl mZ dd l m Z dd l mZ ddl mZ ddl mZ dd l mZ ddl mZ ddl mZ er�ddlmZ e� Ze�� dkr�ed�r�dndZndZdZdd� Zdd� Ze�e d�G dd� de ��Ze�e d�G dd� de ��Ze�e d�G dd� de ��Ze�e d�G d d!� d!e ��Ze�e d"�G d#d$� d$e ��Z e!d%k�r�dd&l"m#Z# e#e$� dS )'z$Tests specific to all BSD platforms.� N)�BSD)�FREEBSD)�NETBSD)�OPENBSD)�spawn_testproc)�HAS_BATTERY)�PsutilTestCase)�retry_on_failure)�sh)�TOLERANCE_SYS_MEM)� terminate)�unittest)�which)�getpagesize�museTFc C sn t d| �}tr(||�d�d d� }nts0trF||�d�d d� }z t|�W S tk rh | Y S X dS )zmExpects a sysctl command with an argument and parse the result returning only the value of interest. zsysctl z: � N�=� )r r �findr r �int� ValueError)�cmdline�result� r �H/opt/alt/python38/lib64/python3.8/site-packages/psutil/tests/test_bsd.py�sysctl- s r c C s>