HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //usr/local/lib/python3.10/dist-packages/sqlalchemy/testing/__pycache__/warnings.cpython-310.pyc
o

���g
�@snddlmZddlZddlmZddlmZddlmZddlmZddlm	Z	d	d
�Z
dd�Zddd�ZdS)�)�annotationsN�)�
assertions�)�exc)�SATestSuiteWarning)�_warnings_warncCst|td�dS)N��category)rr)�message�r�F/usr/local/lib/python3.10/dist-packages/sqlalchemy/testing/warnings.py�warn_test_suitesrcCs$tjdtjd�tjdtjd�dS)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�	SAWarningrrrrr
�
setup_filterssrFcCs<tjtj||d��|�Wd�S1swYdS)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_msgsrrrr
�assert_warnings*s
�$�r)F)
�
__future__rr�rrrr�util.langhelpersrrrrrrrr
�<module>s