B
    \                 @   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_excZSAPendingDeprecationWarningZSADeprecationWarning	SAWarningDeprecationWarning r   r   :lib/python3.7/site-packages/sqlalchemy/testing/warnings.pysetup_filters   s    r   Fc          	   C   s$   t jtj||d |  S Q R X dS )zzAssert that each of the given warnings are emitted by fn.

    Deprecated.  Please use assertions.expect_warnings().

    )regexN)r   Z_expect_warningsr   r   )fnZwarning_msgsr   r   r   r   assert_warnings#   s    r   )F)	Z
__future__r   r    r   r   r   r   r   r   r   r   r   <module>   s
   