4^# 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%ddZ& G d d Z' G d de j( Z) G d de j* Z+ G d de+ Z,d dZ-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 )Nred)boldfile)r )sysstderrstdout
USE_COLORSr print)msgcolorr r s u/builddir/build/BUILD/imunify360-venv-2.6.2/opt/imunify360/venv/lib64/python3.11/site-packages/psutil/tests/runner.pycprintr > sZ |"e^^szz CT555555
c c v e Zd ZeZdgZdej v re g d d Z d Z
d Zd Zd Z
d S )
TestLoaderztest_memleaks.pyWHEELHOUSE_UPLOADER_USERNAME)ztest_osx.pyz
test_linux.pyz
test_posix.pyc N fdt j j D S )Nc g | ]Z}| d rC| d r.|j v5t j j | [S )test_.py)
startswithendswith
skip_filesospathjointestdir).0xselfs r