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.


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

  Switch to side-by-side view

--- a/branches/MySQLdb-1.2/MySQLdb/tests/
+++ b/branches/MySQLdb-1.2/MySQLdb/tests/
@@ -77,8 +77,8 @@
         from MySQLdb.constants import ER
             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