File: //proc/self/root/opt/alt/python27/lib/python2.7/site-packages/alembic/testing/warnings.pyc
�
�M!Vc @@ sW d Z d d l m Z d d l Z d d l m Z d d l Z d � Z e d � Z
d S( s� NOTE: copied/adapted from SQLAlchemy master for backwards compatibility;
this should be removable when Alembic targets SQLAlchemy 0.9.4.
i ( t absolute_importN( t excc C@ sF t j d d t j �t j d d t j �t j d d t j �d S( s/ Set global warning behavior for the test suite.t ignoret categoryt errorN( t warningst filterwarningst sa_exct SAPendingDeprecationWarningt SADeprecationWarningt SAWarning( ( ( sI /opt/alt/python27/lib/python2.7/site-packages/alembic/testing/warnings.pyt
setup_filters s
c C@ s� d d l m } t j d t � � } t j d � | � } Wd QXx] | D]U } | j d � } | r� t j | t | j
� � s� t � qH | | t | j
� � qH W| S( s9 Assert that each of the given warnings are emitted by fn.i ( t eq_t recordt alwaysNi ( t
assertionsR R t catch_warningst TrueR t popt ret matcht strt messaget AssertionError( t fnt warning_msgst regexR t logt resultt warningt popwarn( ( sI /opt/alt/python27/lib/python2.7/site-packages/alembic/testing/warnings.pyt assert_warnings s
$( t __doc__t
__future__R R t
sqlalchemyR R R R t FalseR ( ( ( sI /opt/alt/python27/lib/python2.7/site-packages/alembic/testing/warnings.pyt <module> s