From 45c035c823bfbd642dc1490f1c555316af403c4c Mon Sep 17 00:00:00 2001 From: Tom Forbes Date: Mon, 9 Jul 2018 19:59:42 +0100 Subject: Refs #29548 -- Fixed non-GIS test failures on MariaDB. --- tests/backends/mysql/test_features.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/backends') diff --git a/tests/backends/mysql/test_features.py b/tests/backends/mysql/test_features.py index 51282792b3..1385c9b88c 100644 --- a/tests/backends/mysql/test_features.py +++ b/tests/backends/mysql/test_features.py @@ -22,11 +22,13 @@ class TestFeatures(TestCase): def test_skip_locked_no_wait(self): with mock.MagicMock() as _connection: _connection.mysql_version = (8, 0, 1) + _connection.mysql_is_mariadb = False database_features = DatabaseFeatures(_connection) self.assertTrue(database_features.has_select_for_update_skip_locked) self.assertTrue(database_features.has_select_for_update_nowait) with mock.MagicMock() as _connection: _connection.mysql_version = (8, 0, 0) + _connection.mysql_is_mariadb = False database_features = DatabaseFeatures(_connection) self.assertFalse(database_features.has_select_for_update_skip_locked) self.assertFalse(database_features.has_select_for_update_nowait) -- cgit v1.3