Improved support for Python 3.

This commit is contained in:
Niko Wenselowski
2014-01-09 18:03:53 +01:00
parent d34fac6814
commit b9aa0530a8
4 changed files with 13 additions and 5 deletions

View File

@ -76,7 +76,7 @@ class test_MySQLdb(capabilities.DatabaseTest):
from MySQLdb.constants import ER
try:
self.cursor.execute("describe some_non_existent_table");
except self.connection.ProgrammingError, msg:
except self.connection.ProgrammingError as msg:
self.assertEquals(msg[0], ER.NO_SUCH_TABLE)
def test_bug_3514287(self):