Skip to content

Commit

Permalink
skip test against MySQL 9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nakagami committed Aug 22, 2024
1 parent cc9b822 commit 4ae8698
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Requirements
-------------

- Python 2.7, 3.8+
- MySQL 5.5 or higher
- MySQL 5.7 or higher

Installation
--------------
Expand Down
7 changes: 4 additions & 3 deletions cymysql/tests/test_issues.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,10 +230,11 @@ def test_issue_36(self):
# now nuke the connection
try:
conn.kill(kill_id)
except cymysql.InternalError: # MySQL 5.6
except cymysql.InternalError: # MySQL 9.0
exc, value, tb = sys.exc_info()
self.assertEqual(value.errno, 1317)
self.assertEqual(value.errmsg, 'Query execution was interrupted')
self.assertEqual(value.errno, 1047)
self.assertEqual(value.errmsg, 'Unknown command')
return
# make sure this connection has broken
try:
c.execute("show tables")
Expand Down

0 comments on commit 4ae8698

Please sign in to comment.