/
opt
/
alt
/
python27
/
lib64
/
python2.7
/
site-packages
/
sqlalchemy
/
testing
/
up file
home
� 1��fc @@ s� d d l m Z d d l Z d d l m Z d d l m Z d d l m Z d e f d � � YZ d � Z d � Z e d � Z d S( i ( t absolute_importNi ( t assertionsi ( t exc( t _warnings_warnt SATestSuiteWarningc B@ s e Z d Z RS( s� warning for a condition detected during tests that is non-fatal Currently outside of SAWarning so that we can work around tools like Alembic doing the wrong thing with warnings. ( t __name__t __module__t __doc__( ( ( sN /opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/warnings.pyR s c C@ s t | d t �d S( Nt category( R R ( t message( ( sN /opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/warnings.pyt warn_test_suite s c C@ s d } 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 | �t j d d t d d �t j d d t j d d �t j d d t j d d �y d d l } Wn t k r� n Xt j d d | j d | �d S( s/ Set global warning behavior for the test suite.s ^(?:test|sqlalchemy)\..*t ignoreR t errort alwayst moduleR sL .*The default (?:date)?(?:time)?(?:stamp)? (adapter|converter) is deprecateds .*\(deprecated since: 2.0\)$s8 ^The (Sybase|firebird) dialect is deprecated and will bei Nt once( t warningst filterwarningst sa_exct SAPendingDeprecationWarningt SADeprecationWarningt SAWarningR t DeprecationWarningt pytestt ImportErrort PytestDeprecationWarning( t originR ( ( sN /opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/warnings.pyt setup_filters s4 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_warningsN s ( t __future__R R t R R R t util.langhelpersR t WarningR R R t FalseR ( ( ( sN /opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/warnings.pyt <module> s 0