summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTom Forbes <tom@tomforb.es>2018-07-09 19:59:42 +0100
committerTim Graham <timograham@gmail.com>2018-07-09 14:59:42 -0400
commit45c035c823bfbd642dc1490f1c555316af403c4c (patch)
tree6378127ba9f0bca3aa48dae9ecc8683a3123bf12 /tests
parent7d6fe18dde78d07e5f0249e21419f19a67ca4aa4 (diff)
Refs #29548 -- Fixed non-GIS test failures on MariaDB.
Diffstat (limited to 'tests')
-rw-r--r--tests/backends/mysql/test_features.py2
1 files changed, 2 insertions, 0 deletions
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)