Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Diff of /branches/MySQLdb-1.2/MySQLdb/tests/test_MySQLdb_capabilities.py [r671] .. [r672] Maximize Restore

  Switch to side-by-side view

--- a/branches/MySQLdb-1.2/MySQLdb/tests/test_MySQLdb_capabilities.py
+++ b/branches/MySQLdb-1.2/MySQLdb/tests/test_MySQLdb_capabilities.py
@@ -77,8 +77,8 @@
         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