]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commitdiff
Remove remaining 2.0 warning
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 15 Jan 2021 18:44:53 +0000 (13:44 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 15 Jan 2021 18:44:53 +0000 (13:44 -0500)
with the merge of If6b792e57c8c5dff205419644ab68e631575a2fa
in SQLAlchemy we can remove this last 2.0 deprecation warning
filter.

Change-Id: I2a615dc70432e9b6a89a551f405c2a81bcbb8981

alembic/testing/warnings.py

index 018203295fdc8b57d24e3cb351d8dae31c8adac9..d809dfe2d614ba423d8a3b891b3c6f5bc77f2d02 100644 (file)
@@ -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,
-            )