diff options
author | adustman <adustman@9fc6cd9a-920d-0410-adcf-ac96716ed7e8> | 2012-09-08 21:22:53 +0000 |
---|---|---|
committer | adustman <adustman@9fc6cd9a-920d-0410-adcf-ac96716ed7e8> | 2012-09-08 21:22:53 +0000 |
commit | 7676693b8f5f1b9ae62f40f4c872fc1e3777ba71 (patch) | |
tree | 70369e0df320b9271b403608009c0e32b5445401 /MySQLdb/tests/test_MySQLdb_capabilities.py | |
parent | 8041cc6df636b9c42d52e01b727aa98b43f3632c (diff) | |
download | mysqldb1-remotes/svn/MySQLdb-1.2.tar.gz |
More Python 3 fixes. Py 3 blows up when testing BLOBs.remotes/svn/MySQLdb-1.2
Diffstat (limited to 'MySQLdb/tests/test_MySQLdb_capabilities.py')
-rw-r--r-- | MySQLdb/tests/test_MySQLdb_capabilities.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/MySQLdb/tests/test_MySQLdb_capabilities.py b/MySQLdb/tests/test_MySQLdb_capabilities.py index a8f144a..98a2371 100644 --- a/MySQLdb/tests/test_MySQLdb_capabilities.py +++ b/MySQLdb/tests/test_MySQLdb_capabilities.py @@ -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 |