From 84e423295a09c4720ebc23b8e722006efe9db36b Mon Sep 17 00:00:00 2001 From: Georg Richter Date: Thu, 12 Oct 2023 05:41:40 +0200 Subject: [PATCH] Test fix Skip extended field type test if server is MySQL or MariaDB server version is < 10.10 --- testing/test/integration/test_cursor.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/testing/test/integration/test_cursor.py b/testing/test/integration/test_cursor.py index 87a63fe..e20eb5a 100644 --- a/testing/test/integration/test_cursor.py +++ b/testing/test/integration/test_cursor.py @@ -243,8 +243,9 @@ def test_buffered(self): del cursor def test_ext_field_types(self): - if is_mysql(): - self.skipTest("Skip (MySQL)") + x = self.connection.server_version_info + if x < (10, 10, 0) or is_mysql(): + self.skipTest("Skip (MySQL and MariaDB < 10.10)") cursor = self.connection.cursor() cursor.execute("CREATE TEMPORARY TABLE t1 (a json, b uuid, c inet4, d inet6,"\ "e point)")