Skip to content

Commit

Permalink
Test fix:
Browse files Browse the repository at this point in the history
When connected against MySQL or MariaDB < 10.2 server
we need to skip tests which use INDICATOR variables,
since they can't be used in mysql_stmt_execute() C API
function.
  • Loading branch information
9EOR9 committed Aug 16, 2021
1 parent fc32956 commit 1ab9f83
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions testing/test/integration/test_cursor.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,8 @@ def test_tuple(self):
del cursor

def test_indicator(self):
if is_mysql():
self.skipTest("Skip (MySQL)")
if self.connection.server_version < server_indicator_version:
self.skipTest("Requires server version >= 10.2.6")
if os.environ.get("MAXSCALE_VERSION"):
Expand Down Expand Up @@ -950,6 +952,8 @@ def test_conpy59(self):
def test_conpy61(self):
if os.environ.get("MAXSCALE_VERSION"):
self.skipTest("MAXSCALE doesn't support BULK yet")
if is_mysql():
self.skipTest("Skip (MySQL)")
con= create_connection()
if self.connection.server_version < server_indicator_version:
self.skipTest("Requires server version >= 10.2.6")
Expand Down

0 comments on commit 1ab9f83

Please sign in to comment.