§ |<ˆj ã ó — d Z ddlmZ ddlmZ ddlmZ ddlmZ dZdZ dZ dd ee dedee d ee fd„Z ded efd„Z ddee dee dee d ee fd„Zdee ded ee fd„Zd S )z±Utilities for truncating assertion output. Current default behaviour is to truncate assertion explanations at ~8 terminal lines, unless running in "-vv" mode or running on CI. é )ÚList)ÚOptional)Úutil)ÚItemé i€ zuse '-vv' to showNÚexplanationÚitemÚ max_lengthÚreturnc óB — t |¦ « rt | ¦ « S | S )zGTruncate this assertion explanation if the given test item is eligible.)Ú_should_truncate_itemÚ_truncate_explanation)r r r s úl/builddir/build/BUILD/cloudlinux-venv-1.0.12/venv/lib/python3.11/site-packages/_pytest/assertion/truncate.pyÚtruncate_if_requiredr s( € õ ˜TÑ"Ô"ð 2Ý$ [Ñ1Ô1Ð1ØÐó c óX — | j j j }|dk ot j ¦ « S )z9Whether or not this test item is eligible for truncation.é )ÚconfigÚoptionÚverboser Ú running_on_ci)r r s r r r s* € àŒkÔ Ô(€GØ�QŠ;Ð3�tÔ1Ñ3Ô3Ð3Ð3r Úinput_linesÚ max_linesÚ max_charsc óü — |€t }|€t }t d | ¦ « ¦ « }|dz }|dz }t | ¦ « |k r||k r| S | d|… }d}t d |¦ « ¦ « |k rt ||¦ « }nd}t | ¦ « t |¦ « z }|d r|d dz |d<