🔐 Sid Gifari File Manager Pro
v8.0.5 | 2026-08-08 02:11:41 | PHP 8.2.32
📂
/ (Root)
/
opt
/
alt
/
python38
/
lib64
/
python3.8
/
site-packages
/
psutil
/
tests
/
__pycache__
📍 /opt/alt/python38/lib64/python3.8/site-packages/psutil/tests/__pycache__
🔄 Refresh
✏️
Editing: test_bsd.cpython-38.pyc
Read Only
U �|�fS � @ s� d Z ddlZddlZddlZddlZddlZddlZddlmZ ddlmZ ddlm Z ddlm Z ddlmZ ddlm Z dd lmZ dd lmZ ddlmZ ddlmZ dd lmZ ddlmZ er�ddlmZ e� Ze�� dko�ed�ZndZdZdd� Zdd� Ze�e d�G dd� de��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��Z e!d#k�r�dd$l"m#Z# e#e$� dS )%z$Tests specific to all BSD platforms.� N)�BSD)�FREEBSD)�NETBSD)�OPENBSD)�HAS_BATTERY)�TOLERANCE_SYS_MEM)�PsutilTestCase)�retry_on_failure)�sh)�spawn_testproc)� terminate)�which)�getpagesize�museFc 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>