We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b9aa053 commit 0773933Copy full SHA for 0773933
1 file changed
tests/test_MySQLdb_capabilities.py
@@ -77,7 +77,7 @@ def test_bug_2671682(self):
77
try:
78
self.cursor.execute("describe some_non_existent_table");
79
except self.connection.ProgrammingError as msg:
80
- self.assertEquals(msg[0], ER.NO_SUCH_TABLE)
+ self.assertTrue(str(ER.NO_SUCH_TABLE) in str(msg))
81
82
def test_bug_3514287(self):
83
c = self.cursor
0 commit comments