o
    y¬´\  ã                   @   sB   d dl mZ d dlZddlmZ ddlmZ dd„ Zdd
d„ZdS )é    )Úabsolute_importNé   )Ú
assertionsé   )Úexcc                   C   sb   t jdtjd� t jdtjd� t jdtjd� t jdtd� t jdtdd� t jdtdd� dS )z/Set global warning behavior for the test suite.Úignore)ÚcategoryÚerrorz.*StopIteration)r   Úmessagez.*inspect.getargspecN)ÚwarningsÚfilterwarningsÚsa_excÚSAPendingDeprecationWarningÚSADeprecationWarningÚ	SAWarningÚDeprecationWarning© r   r   úM/var/www/html/env/lib/python3.10/site-packages/sqlalchemy/testing/warnings.pyÚ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_warningsr   r   )ÚfnÚwarning_msgsr   r   r   r   Úassert_warnings#   s
   ÿ$ýr   )F)	Ú
__future__r   r   Ú r   r   r   r   r   r   r   r   r   Ú<module>   s   