ok
Direktori : /opt/cloudlinux/venv/lib/python3.11/site-packages/psutil/tests/__pycache__/ |
Current File : //opt/cloudlinux/venv/lib/python3.11/site-packages/psutil/tests/__pycache__/runner.cpython-311.pyc |
� �܋f�+ � � � d Z ddlmZ ddlZddlZddlZddlZddlZddlZddl Z ddl Z n # e$ r dZ Y nw xY w ddlZn # e$ r dZY nw xY wddl Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ dd lmZ dd lmZ ddlmZ ddlmZ d ZdZ e j � � pdZe o e� � Zej � ej �! e"� � � � Z#e j$ j% Z%dd�Z& G d� d� � Z' G d� de j( � � Z) G d� de j* � � Z+ G d� de+� � Z,d d�Z-d� Z.d� Z/d� Z0e1dk r e0� � dS dS )!aA Unit test runner, providing new features on top of unittest module: - colourized output - parallel run (UNIX only) - print failures/tracebacks on CTRL+C - re-run failed tests only (make test-failed) Invocation examples: - make test - make test-failed Parallel: - make test-parallel - make test-process ARGS=--parallel � )�print_functionN)�hilite)�print_color)�term_supports_colors)�super)� CI_TESTING)�import_module_by_path)� print_sysinfo)� reap_children)�safe_rmpath� z.failed-tests.txt� Fc � � |�|dk rt j nt j }t rt | |||�� � d S t | |�� � d S )N�red)�bold�file)r )�sys�stderr�stdout� USE_COLORSr �print)�msg�colorr r s �f/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib64/python3.11/site-packages/psutil/tests/runner.py�cprintr A sZ � ��|�"�e�^�^�s�z�z����� ��C��T��5�5�5�5�5�5� �c�������� c �v � e Zd ZeZdgZdej v re� g d�� � d� Z d� Z d� Zd� Zd� Z d S ) � TestLoaderztest_memleaks.py�WHEELHOUSE_UPLOADER_USERNAME)ztest_osx.pyz test_linux.pyz test_posix.pyc �N � � � fd�t j � j � � D � � S )Nc � �� g | ]Z}|� d � � rC|� d� � r.|�j v�5t j � �j |� � ��[S )�test_�.py)� startswith�endswith� skip_files�os�path�join�testdir)�.0�x�selfs �r � <listcomp>z,TestLoader._get_testmods.<locals>.<listcomp>R sn �� � *� *� *���<�<��(�(�*�-.�Z�Z��->�->�*� ���(�(� ����T�\�1�-�-� )�(�(r )r'