ó
żb]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 j d d 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   messagesE   Oracle compatibility version .* is known to have a maximum identifiers   .*StopIterations   .*inspect.getargspecN(   t   warningst   filterwarningst   sa_exct   SAPendingDeprecationWarningt   SADeprecationWarningt	   SAWarningt   DeprecationWarning(    (    (    s:   lib/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   (    (    s:   lib/python2.7/site-packages/sqlalchemy/testing/warnings.pyt   assert_warnings*   s    (
   t
   __future__R    R   t    R   R   R	   R   t   FalseR   (    (    (    s:   lib/python2.7/site-packages/sqlalchemy/testing/warnings.pyt   <module>   s
   	