Viewing File: /opt/hc_python/lib/python3.12/site-packages/psutil/tests/__pycache__/test_sudo.cpython-312.pyc
�
h0i� � � � d Z ddlZddlZddlZddlZddlmZ ddlmZ ddlmZ ddlmZ ddl m
Z
ddl mZ d � Zd
� Z
G d� de� Zy)
z�Tests which are meant to be run as root.
NOTE: keep this module compatible with unittest: we want to run this
file with the unittest runner, since pytest may not be installed for
the root user.
� N)�FREEBSD)�LINUX)�OPENBSD)�WINDOWS)�
CI_TESTING)�PsutilTestCasec � � t t d� r3t t d� r#t j t j � S t j � S )N�
clock_gettime�CLOCK_REALTIME)�hasattr�timer
r � � �G/opt/hc_python/lib64/python3.12/site-packages/psutil/tests/test_sudo.py�get_systimer s9 � ��t�_�%�'�$�8H�*I��!�!�$�"5�"5�6�6��9�9�;�r c
� � t t d� r6t t d� r& t j t j | � y t r�dd l}dd l }t j j | t j j � } |j |j |j |j# � dz |j$ |j&