From: Daniel Black Date: Wed, 8 Sep 2021 02:56:27 +0000 (+1000) Subject: test_for_update to recognise skip_locked for MariaDB-10.6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F6998%2Fhead;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git test_for_update to recognise skip_locked for MariaDB-10.6 Reference: https://mariadb.com/kb/en/select/#skip-locked --- diff --git a/test/dialect/mysql/test_for_update.py b/test/dialect/mysql/test_for_update.py index 4fdf9541ac..a99435c4a6 100644 --- a/test/dialect/mysql/test_for_update.py +++ b/test/dialect/mysql/test_for_update.py @@ -409,14 +409,14 @@ class SkipLockedTest(fixtures.TablesTest): Column("value", Integer), ) - @testing.only_on("mysql>=8") + @testing.only_on(["mysql>=8", "mariadb>=10.6"]) def test_skip_locked(self, connection): stuff = self.tables.stuff stmt = stuff.select().with_for_update(skip_locked=True) connection.execute(stmt).fetchall() - @testing.only_on(["mysql<8", "mariadb"]) + @testing.only_on(["mysql<8", "mariadb<10.6"]) def test_unsupported_skip_locked(self, connection): stuff = self.tables.stuff stmt = stuff.select().with_for_update(skip_locked=True)