L i hddlmZddlZddlmZddlmZddlmZddlmZddlm Z d Z d Z d d Z y) ) annotationsN) assertions)exc)SATestSuiteWarning)_warnings_warnc&t|ty)Ncategory)r r)messages a/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/sqlalchemy/testing/warnings.pywarn_test_suiters 7%78ctjdtjtjdtjy)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 SAWarningrrr setup_filtersrs. Gcmm< Hs/E/EFrctjtj||5|cdddS#1swYyxYw)zzAssert that each of the given warnings are emitted by fn. Deprecated. Please use assertions.expect_warnings(). )regexN)r_expect_warningssa_excr)fn warning_msgsrs rassert_warningsr*s;  $ $,e ts 8A)F) __future__rrrrrrutil.langhelpersr rrrrrrr#s,#$-9G$ r