Python 3 fixes. _mysql raises SystemError, segfaults

This commit is contained in:
adustman
2012-09-08 17:28:34 +00:00
parent ece1e0e08b
commit 3b3e11340a
3 changed files with 3 additions and 14 deletions

View File

@ -77,7 +77,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.assertTrue(msg[0] == ER.NO_SUCH_TABLE)
def test_bug_3514287(self):
@ -101,4 +101,3 @@ if __name__ == '__main__':
gc.enable()
gc.set_debug(gc.DEBUG_LEAK)
unittest.main()
print '''"Huh-huh, he said 'unit'." -- Butthead'''