1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
U
¸ý°d>ã@snddlmZddlZddlmZddlmZddlmZddlmZddlm    Z    d    d
„Z
d d „Z ddd„Z dS)é)Ú annotationsNé)Ú
assertionsé)Úexc)ÚSATestSuiteWarning)Ú_warnings_warncCst|tddS)N©Úcategory)rr)Úmessage©r úRd:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\sqlalchemy/testing/warnings.pyÚwarn_test_suitesrcCs$tjdtjdtjdtjddS)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)ÚwarningsÚfilterwarningsrÚ    SAWarningrr r r r Ú setup_filterssrFc
Cs0tjtj||d|ƒW5QR£SQRXdS)zzAssert that each of the given warnings are emitted by fn.
 
    Deprecated.  Please use assertions.expect_warnings().
 
    )ÚregexN)rZ_expect_warningsÚsa_excr)ÚfnZ warning_msgsrr r r Úassert_warnings*s ÿr)F) Ú
__future__rrÚrrrrZutil.langhelpersrrrrr r r r Ú<module>    s