Skip to content

Commit 0773933

Browse files
committed
Changing the way checks for the error code are made.
1 parent b9aa053 commit 0773933

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/test_MySQLdb_capabilities.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def test_bug_2671682(self):
7777
try:
7878
self.cursor.execute("describe some_non_existent_table");
7979
except self.connection.ProgrammingError as msg:
80-
self.assertEquals(msg[0], ER.NO_SUCH_TABLE)
80+
self.assertTrue(str(ER.NO_SUCH_TABLE) in str(msg))
8181

8282
def test_bug_3514287(self):
8383
c = self.cursor

0 commit comments

Comments
 (0)