U kf @snddlmZddlZddlmZddlmZddlmZddlmZddlm Z d d Z d d Z dddZ dS)) annotationsN) assertions)exc)SATestSuiteWarning)_warnings_warncCst|tddS)Ncategory)rr)messager K/opt/hc_python/lib64/python3.8/site-packages/sqlalchemy/testing/warnings.pywarn_test_suitesrcCs$tjdtjdtjdtjddS)ahook for setting up warnings filters. SQLAlchemy-specific classes must only be here and not in pytest config, as we need to delay importing SQLAlchemy until conftest.py has been processed. NOTE: filters on subclasses of DeprecationWarning or PendingDeprecationWarning have no effect if added here, since pytest will add at each test the following filters ``always::PendingDeprecationWarning`` and ``always::DeprecationWarning`` that will take precedence over any added here. errorr alwaysN)warningsfilterwarningsr SAWarningrr r r r setup_filterssrFc Cs0tjtj||d|W5QRSQRXdS)zzAssert that each of the given warnings are emitted by fn. Deprecated. Please use assertions.expect_warnings(). )regexN)rZ_expect_warningssa_excr)fnZ warning_msgsrr r r assert_warnings*s r)F) __future__rrrrrrZutil.langhelpersrrrrr r r r  s