From 0773933caead46776ceb5cd86abccfe840e49839 Mon Sep 17 00:00:00 2001 From: Niko Wenselowski Date: Fri, 10 Jan 2014 10:01:17 +0100 Subject: [PATCH] Changing the way checks for the error code are made. --- tests/test_MySQLdb_capabilities.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_MySQLdb_capabilities.py b/tests/test_MySQLdb_capabilities.py index 31e5f6f..c45353f 100644 --- a/tests/test_MySQLdb_capabilities.py +++ b/tests/test_MySQLdb_capabilities.py @@ -77,7 +77,7 @@ class test_MySQLdb(capabilities.DatabaseTest): try: self.cursor.execute("describe some_non_existent_table"); except self.connection.ProgrammingError as msg: - self.assertEquals(msg[0], ER.NO_SUCH_TABLE) + self.assertTrue(str(ER.NO_SUCH_TABLE) in str(msg)) def test_bug_3514287(self): c = self.cursor