§
x<ˆjÄ+ ã ó– — 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 úg/builddir/build/BUILD/cloudlinux-venv-1.0.12/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 ú