mirror of
https://github.com/PyMySQL/mysqlclient.git
synced 2025-08-16 03:50:43 +08:00
More Python 3 fixes. Py 3 blows up when testing BLOBs.
This commit is contained in:
@ -77,8 +77,8 @@ class test_MySQLdb(capabilities.DatabaseTest):
|
||||
from MySQLdb.constants import ER
|
||||
try:
|
||||
self.cursor.execute("describe some_non_existent_table");
|
||||
except self.connection.ProgrammingError as (msg,):
|
||||
self.assertTrue(msg[0] == ER.NO_SUCH_TABLE)
|
||||
except self.connection.ProgrammingError as msg:
|
||||
self.assertTrue(msg.args[0].args[0] == ER.NO_SUCH_TABLE)
|
||||
|
||||
def test_bug_3514287(self):
|
||||
c = self.cursor
|
||||
|
Reference in New Issue
Block a user