§ |<ˆjã ó—dZddlmZddlmZddlmZddlmZdZdZ dZ dd ee d ed ee d ee fd„Z d ed efd„Z ddee dee dee d ee fd„Zdee de d 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)rr r s úl/builddir/build/BUILD/cloudlinux-venv-1.0.12/venv/lib/python3.11/site-packages/_pytest/assertion/truncate.pyÚtruncate_if_requiredrs(€õ˜TÑ"Ô"ð2Ý$ [Ñ1Ô1Ð1Ø ÐócóX—|jjj}|dkotj¦« S)z9Whether or not this test item is eligible for truncation.é)ÚconfigÚoptionÚverboserÚ running_on_ci)r rs rr r s*€àŒkÔ Ô(€GØ �QŠ;Ð 3�tÔ1Ñ3Ô3Ð3Ð3rÚ input_linesÚ max_linesÚ max_charscóü—|€t}|€t}td |¦«¦«}|dz}|dz}t|¦«|kr||kr|S|d|…}d}td |¦«¦«|krt ||¦«}nd}t|¦«t|¦«z }|dr|ddz|d<|r|d z }nd|d<|dd |›d |d krdnd ›d t ›�gzS)aTruncate given list of strings that makes up the assertion explanation. Truncates to either 8 lines, or 640 characters - whichever the input reaches first, taking the truncation explanation into account. The remaining lines will be replaced by a usage message. NÚéFrTFéÿÿÿÿz...éz...Full output truncated (z lineÚsz hidden), )ÚDEFAULT_MAX_LINESÚDEFAULT_MAX_CHARSÚlenÚjoinÚ_truncate_by_char_countÚ USAGE_MSG) rrrÚinput_char_countÚtolerable_max_charsÚtolerable_max_linesÚtruncated_explanationÚtruncated_charÚtruncated_line_counts rrr!s€ðÐÝ%ˆ ØÐÝ%ˆ õ˜2Ÿ7š7 ;Ñ/Ô/Ñ0Ô0Ðð �B‰ðð$ a™-Ðå ˆKÑÔÐ/Ò/Ð/Ø Ð 3Ò 3Ð 3àÐà'¨ ¨¨ Ô3ÐØ€Nå ˆ2�7Š7Ð(Ñ )Ô )Ñ*Ô*Ð-@Ò@Ð@Ý 7Ø ! 9ñ! ô! ÐÐðˆå˜{Ñ+Ô+­cÐ2GÑ.HÔ.HÑHÐØ˜RÔ ð*à$9¸"Ô$=ÀÑ$EИbÑ!Ø ð &à  AÑ %Ð øð%*ИbÑ!Ø Ø ð KÐ%9ð Kð KØ%¨Ò*Ð*ˆ2ˆ2°ð Kð KÝ?Hð Kð Kð$ñ ðrcóø—d}t|¦«D]/\}}|t|¦«z|krn|t|¦«z }Œ0|d|…}||}|r||z }|d|…}| |¦«|S)Nr)Ú enumerater#Úappend)rrÚiterated_char_countÚiterated_indexÚ input_lineÚtruncated_resultÚ final_lineÚfinal_line_truncate_points rr%r%ds­€àÐÝ&/° Ñ&<Ô&<ð/ð/Ñ"ˆ˜ Ø ¥ Z¡¤Ñ 0°9Ò <Ð <Ø ˆEØ�s :™œÑ.ÐÐð# ? N ?Ô3ÐØ˜^Ô,€JØð<Ø$-Ð0CÑ$CÐ!ØÐ :Ð!:Ð :Ô;ˆ Ø×Ò˜JÑ'Ô'Ð'Ø Ðr)N)NN)Ú__doc__ÚtypingrrÚ_pytest.assertionrÚ _pytest.nodesrr!r"r&ÚstrÚintrÚboolr rr%©rrúr>stðððð ÐÐÐÐÐØÐÐÐÐÐà"Ð"Ð"Ð"Ð"Ð"ØÐÐÐÐÐðÐØÐØ € ðEIððØ�c”ðØ"&ðØ4<¸S´Mðà ˆ#„Yððððð4 ð4¨ð4ð4ð4ð4ð $Ø#ð@ð@Ø�c”ð@à˜Œ}ð@ð˜Œ}ð@ð ˆ#„Yð @ð@ð@ð@ðF¨¨c¬ð¸sðÀtÈCÄyððððððr