Viewing File: /opt/hc_python/lib/python3.12/site-packages/sqlalchemy/testing/__pycache__/warnings.cpython-312.pyc

�

a��g
��h�ddlmZddlZddlmZddlmZddlmZddlmZddlm	Z	d	�Z
d
�Zdd�Zy)
�)�annotationsN�)�
assertions�)�exc)�SATestSuiteWarning)�_warnings_warnc�&�t|t��y)N��category)r	r)�messages �L/opt/hc_python/lib64/python3.12/site-packages/sqlalchemy/testing/warnings.py�warn_test_suiters
���7�%7�8�c��tjdtj��tjdtj��y)ahook for setting up warnings filters.

    SQLAlchemy-specific classes must only be here and not in pytest config,
    as we need to delay importing SQLAlchemy until conftest.py has been
    processed.

    NOTE: filters on subclasses of DeprecationWarning or
    PendingDeprecationWarning have no effect if added here, since pytest
    will add at each test the following filters
    ``always::PendingDeprecationWarning`` and ``always::DeprecationWarning``
    that will take precedence over any added here.

    �errorr�alwaysN)�warnings�filterwarningsr�	SAWarningr�rr�
setup_filtersrs.��
���G�c�m�m�<����H�s�/E�/E�Frc��tjtj||��5|�cddd�S#1swYyxYw)zzAssert that each of the given warnings are emitted by fn.

    Deprecated.  Please use assertions.expect_warnings().

    )�regexN)r�_expect_warnings�sa_excr)�fn�warning_msgsrs   r�assert_warningsr*s6��
�	$�	$����,�e�
��t�
�
�
�s	�8�A)F)
�
__future__rr�rrrr�util.langhelpersr	rrrrrr�<module>r#s,��#�����$�-�9�G�$
r
Back to Directory File Manager