From: Mike Bayer Date: Fri, 21 Apr 2023 19:17:39 +0000 (-0400) Subject: restore fallback for uow test X-Git-Tag: rel_2_0_10~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ed17afc0711de3dfdc38a2071237ef155401ed50;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git restore fallback for uow test 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 --- diff --git a/test/orm/test_unitofwork.py b/test/orm/test_unitofwork.py index f9c565c864..4f49461c24 100644 --- a/test/orm/test_unitofwork.py +++ b/test/orm/test_unitofwork.py @@ -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