PATH:
usr
/
local
/
lib64
/
python3.9
/
site-packages
/
psutil
/
tests
/
__pycache__
a ���i�N � @ 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�� dko�ed�ZndZdZdd� Zdd� Zejje dd�G dd� de ��Zejje dd�G dd� de ��Zejje dd�G dd� de ��Zejje dd�G d d!� d!e ��Z ejje d"d�G d#d$� d$e ��Z!dS )%z$Tests specific to all BSD platforms.� N)�BSD)�FREEBSD)�NETBSD)�OPENBSD)�HAS_BATTERY)�TOLERANCE_SYS_MEM)�PsutilTestCase)�pytest)�retry_on_failure)�sh)�spawn_testproc)� terminate)�which)�getpagesize�museFc C sl t d| �}tr(||�d�d d� }nts0trF||�d�d d� }z t|�W S tyf | Y S 0 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 �A/usr/local/lib64/python3.9/site-packages/psutil/tests/test_bsd.py�sysctl- s r c C s>