From: Mike Bayer Date: Fri, 15 Jan 2021 18:44:53 +0000 (-0500) Subject: Remove remaining 2.0 warning X-Git-Tag: rel_1_5_0~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=131eace6aea202484ac2a5ee1a8082c851affbf3;p=thirdparty%2Fsqlalchemy%2Falembic.git Remove remaining 2.0 warning with the merge of If6b792e57c8c5dff205419644ab68e631575a2fa in SQLAlchemy we can remove this last 2.0 deprecation warning filter. Change-Id: I2a615dc70432e9b6a89a551f405c2a81bcbb8981 --- diff --git a/alembic/testing/warnings.py b/alembic/testing/warnings.py index 01820329..d809dfe2 100644 --- a/alembic/testing/warnings.py +++ b/alembic/testing/warnings.py @@ -30,19 +30,3 @@ def setup_filters(): warnings.filterwarnings( "once", category=pytest.PytestDeprecationWarning ) - - if hasattr(sa_exc, "RemovedIn20Warning"): - for msg in [ - # - # Core execution - need to remove this after SQLAlchemy - # repairs it in provisioning - # - r"The connection.execute\(\) method in SQLAlchemy 2.0 will accept " - "parameters as a single dictionary or a single sequence of " - "dictionaries only.", - ]: - warnings.filterwarnings( - "ignore", - message=msg, - category=sa_exc.RemovedIn20Warning, - )