File: //opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/warnings.pyo
�
��4]c           @@  sU   d  d l  m Z d  d l Z d d l m Z d d l m Z d �  Z e d � Z	 d S(	   i    (   t   absolute_importNi   (   t
   assertionsi   (   t   excc           C@  s�   t  j d d t j �t  j d d t j �t  j d d t j �t  j d d t �t  j d d t d d �t  j d d t d d �d S(   s/   Set global warning behavior for the test suite.t   ignoret   categoryt   errort   messages   .*StopIterations   .*inspect.getargspecN(   t   warningst   filterwarningst   sa_exct   SAPendingDeprecationWarningt   SADeprecationWarningt	   SAWarningt   DeprecationWarning(    (    (    sN   /opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/warnings.pyt
   setup_filters   s    c         C@  s-   t  j t j | d | �� |  �  SWd QXd S(   sz   Assert that each of the given warnings are emitted by fn.
    Deprecated.  Please use assertions.expect_warnings().
    t   regexN(   R   t   _expect_warningsR	   R   (   t   fnt   warning_msgsR   (    (    sN   /opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/warnings.pyt   assert_warnings#   s    (
   t
   __future__R    R   t    R   R   R	   R   t   FalseR   (    (    (    sN   /opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/warnings.pyt   <module>   s