
    g
                    h    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	 Z
d
 ZddZy)    )annotationsN   )
assertions   )exc)SATestSuiteWarning)_warnings_warnc                &    t        | t               y )Ncategory)r	   r   )messages    Z/var/www/html/AdoubleTech/venv/lib/python3.12/site-packages/sqlalchemy/testing/warnings.pywarn_test_suiter      s    7%78    c                     t        j                  dt        j                         t        j                  dt        j                         y)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   setup_filtersr      s.     Gcmm<Hs/E/EFr   c                    t        j                  t        j                  ||      5   |        cddd       S # 1 sw Y   yxY w)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   s      r   assert_warningsr   *   s;     
	$	$,e
  t  s	   8A)F)
__future__r   r    r   r   r   r   util.langhelpersr	   r   r   r   r   r   r   <module>r#      s,    #     $ -9G$
r   