U
    x^                     @   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   st   t jdtjd t jdtjd t jdtjd t jdtjd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errorzEOracle compatibility version .* is known to have a maximum identifier)r   messagez.*StopIterationz.*inspect.getargspecN)warningsfilterwarningssa_excZSAPendingDeprecationWarningZSADeprecationWarning	SAWarningDeprecationWarning r   r   C/tmp/pip-install-dq5v43_d/SQLAlchemy/sqlalchemy/testing/warnings.pysetup_filters   s,         r   Fc              
   C   s0   t jtj||d |  W  5 Q R  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)	
__future__r   r    r   r   r   r   r   r   r   r   r   <module>   s
   