We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c04832 commit 93b0c3fCopy full SHA for 93b0c3f
pymysqlreplication/tests/base.py
@@ -74,6 +74,10 @@ def isMySQL57(self):
74
version = float(self.getMySQLVersion().rsplit(".", 1)[0])
75
return version == 5.7
76
77
+ def isMySQL57AndMore(self):
78
+ version = float(self.getMySQLVersion().rsplit(".", 1)[0])
79
+ return version >= 5.7
80
+
81
def isMySQL80AndMore(self):
82
83
return version >= 8.0
pymysqlreplication/tests/test_basic.py
@@ -1488,6 +1488,8 @@ def test_gtid_event(self):
1488
server_id=1024,
1489
only_events=[GtidEvent],
1490
)
1491
+ if not self.isMySQL57AndMore():
1492
+ self.skipTest("Mysql version is under 5.7")
1493
self.execute(
1494
"CREATE TABLE IF NOT EXISTS test (id INT AUTO_INCREMENT PRIMARY KEY, name VARCHAR(255))"
1495
0 commit comments