]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commitdiff
dont hardcode transaction opened messaging
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 4 Nov 2021 18:34:07 +0000 (14:34 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 4 Nov 2021 18:34:07 +0000 (14:34 -0400)
Adjustments to the test suite to accommodate for error message changes
occurring as of SQLAlchemy 1.4.27.

Change-Id: I5092c8d3ba3d16819b200f1dfc3c30b8d24abe30

docs/build/unreleased/test_changes.rst [new file with mode: 0644]
tests/test_script_consumption.py

diff --git a/docs/build/unreleased/test_changes.rst b/docs/build/unreleased/test_changes.rst
new file mode 100644 (file)
index 0000000..00d48c5
--- /dev/null
@@ -0,0 +1,5 @@
+.. change::
+    :tags: bug, tests
+
+    Adjustments to the test suite to accommodate for error message changes
+    occurring as of SQLAlchemy 1.4.27.
index 4b46564dc5a1fc8a7a5e2e70d7e6a9c8d080b635..33e40dc179fd4138550a903653983dc8b57c42ce 100644 (file)
@@ -532,7 +532,7 @@ def downgrade():
                 if self.is_sqlalchemy_future:
                     with testing.expect_raises_message(
                         sa.exc.InvalidRequestError,
-                        r"a transaction is already begun for this connection",
+                        r".*already",
                     ):
                         command.upgrade(self.cfg, c)
                 else:
@@ -554,7 +554,7 @@ def downgrade():
                 if self.is_sqlalchemy_future:
                     with testing.expect_raises_message(
                         sa.exc.InvalidRequestError,
-                        r"a transaction is already begun for this connection",
+                        r".*already",
                     ):
                         command.upgrade(self.cfg, c)
                 else:
@@ -576,7 +576,7 @@ def downgrade():
                 if self.is_sqlalchemy_future:
                     with testing.expect_raises_message(
                         sa.exc.InvalidRequestError,
-                        r"a transaction is already begun for this connection",
+                        r".*already",
                     ):
                         command.upgrade(self.cfg, c)
                 else: