CoolFace
Apppublic

Aluode/PerceptionLabPortable

sourceHugging Faceupdated 9mo agoView on Hugging Face
0likes
test_warnings.cpython-310.pyc52 linesDownload Raw Back to __pycache__
1o

2��Yi
�@s�ddlmZddlZddlmZmZeddddd�d	d3�eddd
idd4�edddd�dd5�d�Zej�	de�6��dd��Zdd�Zdd�Z
dS)�)�cleandocN)�SetuptoolsDeprecationWarning�SetuptoolsWarning)z	Hello {x}z7	{target} {v:.1f}��ZWorld)�x�v�targetz�8    Hello 59    !!10 11            ********************************************************************************12            World 3.013            ********************************************************************************14 15    !!16    )�args�kwargs�expected)�Summary�Lorem ipsum�due_date)i'��a�17    Summary18    !!19 20            ********************************************************************************21            Lorem ipsum22 23            By 9999-Nov-22, you need to update your project and remove deprecated calls24            or your builds will no longer be supported.25            ********************************************************************************26 27    !!28    �i�rr�some_page.html)rZsee_docs��29    Summary30    !!31 32            ********************************************************************************33            Lorem ipsum34 35            This deprecation is overdue, please update your project and remove deprecated36            calls to avoid build errors in the future.37 38            See https://setuptools.pypa.io/en/latest/some_page.html for details.39            ********************************************************************************40 41    !!42    )�defaultZfutue_due_dateZpast_due_date_with_docs�example_namecCs�t|d}t|d}t|d}|�dd�t�t��}tj|i|��Wd�n1s0wYt|�t|�ks?J�dS)z]43    It should automatically handle indentation, interpolation and things like due date.44    r45rr�SETUPTOOLS_ENFORCE_DEPRECATION�falseN)�	_EXAMPLES�setenv�pytestZwarnsr�emit�_get_messager)�monkeypatchrr46rr�	warn_info�r ��E:\DocsHouse\542 percep lab latest\PerceptionLab\PerceptionLab_Portable\python_embed\Lib\site-packages\setuptools/tests/test_warnings.py�test_formatting=s�r"cCslGdd�dt�}|�dd�t�t��}|��Wd�n1s"wYd}t|j�t|�ks4J�dS)Nc@seZdZdZdZdZdZdS)z1test_due_date_enforcement.<locals>._MyDeprecationr
rrrN)�__name__�47__module__�__qualname__Z_SUMMARYZ_DETAILSZ	_DUE_DATEZ	_SEE_DOCSr r r r!�_MyDeprecationMs48r&r�truer)rrrZraisesr�str�valuer)rr&�exc_inforr r r!�test_due_date_enforcementLs49�r+cCstdd�|D��S)Ncss�|]	}|jjdVqdS)rN)�messager50)�.0�warnr r r!�	<genexpr>js�z_get_message.<locals>.<genexpr>)�next)rr r r!risr)�inspectrrZsetuptools.warningsrr�dictr�markZparametrize�keysr"r+rr r r r!�<module>s.51����652
Aluode/PerceptionLabPortable · CoolFace