From 53ebb0fced409379e838fbc65ed639e96b1b3af4 Mon Sep 17 00:00:00 2001 From: Marc Abramowitz Date: Mon, 30 Sep 2013 13:51:30 -0700 Subject: Change one assertTrue to assertEquals to get better failure output --- 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 ebec1e6..ead6982 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, msg: - self.assertTrue(msg[0] == ER.NO_SUCH_TABLE) + self.assertEquals(msg[0], ER.NO_SUCH_TABLE) def test_bug_3514287(self): c = self.cursor -- cgit v1.2.1