Skip to content

Commit

Permalink
Resolves in code review
Browse files Browse the repository at this point in the history
  • Loading branch information
taehun.kim committed Dec 4, 2023
1 parent 9c04832 commit 93b0c3f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pymysqlreplication/tests/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ def isMySQL57(self):
version = float(self.getMySQLVersion().rsplit(".", 1)[0])
return version == 5.7

def isMySQL57AndMore(self):
version = float(self.getMySQLVersion().rsplit(".", 1)[0])
return version >= 5.7

def isMySQL80AndMore(self):
version = float(self.getMySQLVersion().rsplit(".", 1)[0])
return version >= 8.0
Expand Down
2 changes: 2 additions & 0 deletions pymysqlreplication/tests/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -1488,6 +1488,8 @@ def test_gtid_event(self):
server_id=1024,
only_events=[GtidEvent],
)
if not self.isMySQL57AndMore():
self.skipTest("Mysql version is under 5.7")
self.execute(
"CREATE TABLE IF NOT EXISTS test (id INT AUTO_INCREMENT PRIMARY KEY, name VARCHAR(255))"
)
Expand Down

0 comments on commit 93b0c3f

Please sign in to comment.