From 40690c45fc0261146f320a082a23d3af31f24b5d Mon Sep 17 00:00:00 2001 From: Georg Richter Date: Thu, 13 Feb 2025 10:46:07 +0100 Subject: [PATCH] Test fix: Check server version for INET4/INET6 usage --- testing/test/integration/test_cursor.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/testing/test/integration/test_cursor.py b/testing/test/integration/test_cursor.py index 3582949..f0ea93d 100644 --- a/testing/test/integration/test_cursor.py +++ b/testing/test/integration/test_cursor.py @@ -616,6 +616,10 @@ class TestCursor(unittest.TestCase): def test_conpy298(self): import uuid, ipaddress + 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("DROP TABLE IF EXISTS t1") cursor.execute("CREATE TABLE t1 (a inet6, b inet4, c uuid)")