summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2023-04-21 15:17:39 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2023-04-21 15:17:39 -0400
commited17afc0711de3dfdc38a2071237ef155401ed50 (patch)
treee16ef7ba934194bffcfe32842a522c782fe0446b
parent553dcbc11cf9401b85bc2aab55977eb1925cf262 (diff)
downloadsqlalchemy-ed17afc0711de3dfdc38a2071237ef155401ed50.tar.gz
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
-rw-r--r--test/orm/test_unitofwork.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/orm/test_unitofwork.py b/test/orm/test_unitofwork.py
index f9c565c86..4f49461c2 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