o
    g
                     @  sn   d dl mZ d dlZddlmZ ddlmZ ddlmZ ddlmZ ddlm	Z	 d	d
 Z
dd ZdddZdS )    )annotationsN   )
assertions   )exc)SATestSuiteWarning)_warnings_warnc                 C  s   t | td d S )Ncategory)r   r   )message r   ]/var/www/html/ecg_monitoring/venv/lib/python3.10/site-packages/sqlalchemy/testing/warnings.pywarn_test_suite   s   r   c                   C  s$   t jdtjd t jdtjd dS )a  hook 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   r   r   r   r   setup_filters   s   r   Fc                 C  s<   t jtj||d |  W  d   S 1 sw   Y  dS )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_msgsr   r   r   r   assert_warnings*   s
   $r   )F)
__future__r   r    r   r   r   r   util.langhelpersr   r   r   r   r   r   r   r   <module>   s   