From 131eace6aea202484ac2a5ee1a8082c851affbf3 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Fri, 15 Jan 2021 13:44:53 -0500 Subject: [PATCH] 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 --- alembic/testing/warnings.py | 16 ---------------- 1 file changed, 16 deletions(-) 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, - ) -- 2.47.2