HEX
Server: LiteSpeed
System: Linux php-prod-1.spaceapp.ru 5.15.0-157-generic #167-Ubuntu SMP Wed Sep 17 21:35:53 UTC 2025 x86_64
User: sport3497 (1034)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //usr/local/lib/python3.10/dist-packages/setuptools/tests/__pycache__/test_warnings.cpython-310.pyc
o

��h
�@s�ddlmZddlZddlmZmZeddddd�d	d
�eddd
idd
�edddd�dd
�d�Zej�	de�
��dd��Zdd�Zdd�Z
dS)�)�cleandocN)�SetuptoolsDeprecationWarning�SetuptoolsWarning)z	Hello {x}z
	{target} {v:.1f}���World)�x�v�targetz�
    Hello 5
    !!

            ********************************************************************************
            World 3.0
            ********************************************************************************

    !!
    )�args�kwargs�expected)�Summary�Lorem ipsum�due_date)i'��a�
    Summary
    !!

            ********************************************************************************
            Lorem ipsum

            By 9999-Nov-22, you need to update your project and remove deprecated calls
            or your builds will no longer be supported.
            ********************************************************************************

    !!
    �i�rr�some_page.html)r�see_docs��
    Summary
    !!

            ********************************************************************************
            Lorem ipsum

            This deprecation is overdue, please update your project and remove deprecated
            calls to avoid build errors in the future.

            See https://setuptools.pypa.io/en/latest/some_page.html for details.
            ********************************************************************************

    !!
    )�default�futue_due_date�past_due_date_with_docs�example_namecCs�t|d}t|d}t|d}|�dd�t�t��}tj|i|��Wd�n1s0wYt|�t|�ks?J�dS)z]
    It should automatically handle indentation, interpolation and things like due date.
    rrr
�SETUPTOOLS_ENFORCE_DEPRECATION�falseN)�	_EXAMPLES�setenv�pytest�warnsr�emit�_get_messager)�monkeypatchrrrr
�	warn_info�r%�I/usr/local/lib/python3.10/dist-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>._MyDeprecationrrrrN)�__name__�
__module__�__qualname__�_SUMMARY�_DETAILS�	_DUE_DATE�	_SEE_DOCSr%r%r%r&�_MyDeprecationMs
r/r�truer)rrr�raisesr!�str�valuer)r#r/�exc_infor
r%r%r&�test_due_date_enforcementLs
�r5cCstdd�|D��S)Ncss�|]	}|jjdVqdS)rN)�messager)�.0�warnr%r%r&�	<genexpr>js�z_get_message.<locals>.<genexpr>)�next)r$r%r%r&r"isr")�inspectrr�setuptools.warningsrr�dictr�mark�parametrize�keysr'r5r"r%r%r%r&�<module>s.
����6