Viewing File: /opt/imunify360/venv/lib/python3.11/site-packages/psutil/tests/__pycache__/runner.cpython-311.pyc
]jD, 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.3/opt/imunify360/venv/lib64/python3.11/site-packages/psutil/tests/runner.pycprintr >