]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
restore fallback for uow test
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 21 Apr 2023 19:17:39 +0000 (15:17 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 21 Apr 2023 19:17:39 +0000 (15:17 -0400)
in cf6872d3bdf1a8a9613e85369 I decided this test should
be able to run in all cases, however apparently on windows
/ py37 on GH actions something goes wrong, so restore the skip
to that case.

Change-Id: Iaf4db313c20ce30469032af930b7dc86417d0705

test/orm/test_unitofwork.py

index f9c565c864620305ed4970dfec62a2471507bae8..4f49461c244dc165a3a532ca51d2a12d0547bec2 100644 (file)
@@ -3550,6 +3550,15 @@ class NoRowInsertedTest(fixtures.TestBase):
                         "RETURNING my_table.id"
                     )
                     parameters = {}
+            else:
+                assert not testing.against(
+                    "postgresql"
+                ), "this test has to at least run on PostgreSQL"
+                testing.config.skip_test(
+                    "backend doesn't support the expected form of "
+                    "RETURNING for this test to work"
+                )
+
             return statement, parameters
 
         return MyClass