summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/testing/plugin/plugin_base.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2020-12-19 10:59:42 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2020-12-19 12:36:57 -0500
commit31e7428b1622ce62a90d0270a2818dc785e210e9 (patch)
tree24553562f4b304d1603241ef4ba2e91ee4d32707 /lib/sqlalchemy/testing/plugin/plugin_base.py
parent27766512b2d037a8f0048dccc6e2f02c281fbc9a (diff)
downloadsqlalchemy-31e7428b1622ce62a90d0270a2818dc785e210e9.tar.gz
Repair mssql dep tests; have __only_on__ imply __backend__
CI missed a few SQL Server tests because we run mssql-backendonly in the gerrit job. As there was a test that was "only on" mssql but didn't have backendonly, it never got run and then fails in master where we run mssql fully. Any suite that has an __only_on__ is inherently specific to a backend, so if present this should imply __backend__ so that it definitely runs when we have that backend present. This in turn meant we had to fix a few sqlite_file tests that weren't cleaning up or sharing well as they suddenly became backend tests under sqlite_file. Added a sqlite_file cleanup to test class cleanup for now. Change-Id: I9de1ceabd6596547a65c59059a55b7e5156103fd
Diffstat (limited to 'lib/sqlalchemy/testing/plugin/plugin_base.py')
-rw-r--r--lib/sqlalchemy/testing/plugin/plugin_base.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/sqlalchemy/testing/plugin/plugin_base.py b/lib/sqlalchemy/testing/plugin/plugin_base.py
index b39015852..5e41f2cdf 100644
--- a/lib/sqlalchemy/testing/plugin/plugin_base.py
+++ b/lib/sqlalchemy/testing/plugin/plugin_base.py
@@ -553,6 +553,7 @@ def want_class(name, cls):
config.options.backend_only
and not getattr(cls, "__backend__", False)
and not getattr(cls, "__sparse_backend__", False)
+ and not getattr(cls, "__only_on__", False)
):
return False
else: