Skip to content

Commit 40690c4

Browse files
committed
Test fix:
Check server version for INET4/INET6 usage
1 parent befe700 commit 40690c4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

testing/test/integration/test_cursor.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -616,6 +616,10 @@ def test_conpy_8(self):
616616
def test_conpy298(self):
617617
import uuid, ipaddress
618618

619+
x = self.connection.server_version_info
620+
if x < (10, 10, 0) or is_mysql():
621+
self.skipTest("Skip (MySQL and MariaDB < 10.10)")
622+
619623
cursor= self.connection.cursor()
620624
cursor.execute("DROP TABLE IF EXISTS t1")
621625
cursor.execute("CREATE TABLE t1 (a inet6, b inet4, c uuid)")

0 commit comments

Comments
 (0)