File tree 2 files changed +6
-0
lines changed
2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,10 @@ def isMySQL57(self):
74
74
version = float (self .getMySQLVersion ().rsplit ("." , 1 )[0 ])
75
75
return version == 5.7
76
76
77
+ def isMySQL57AndMore (self ):
78
+ version = float (self .getMySQLVersion ().rsplit ("." , 1 )[0 ])
79
+ return version >= 5.7
80
+
77
81
def isMySQL80AndMore (self ):
78
82
version = float (self .getMySQLVersion ().rsplit ("." , 1 )[0 ])
79
83
return version >= 8.0
Original file line number Diff line number Diff line change @@ -1488,6 +1488,8 @@ def test_gtid_event(self):
1488
1488
server_id = 1024 ,
1489
1489
only_events = [GtidEvent ],
1490
1490
)
1491
+ if not self .isMySQL57AndMore ():
1492
+ self .skipTest ("Mysql version is under 5.7" )
1491
1493
self .execute (
1492
1494
"CREATE TABLE IF NOT EXISTS test (id INT AUTO_INCREMENT PRIMARY KEY, name VARCHAR(255))"
1493
1495
)
You can’t perform that action at this time.
0 commit comments