Mercurial > p > mysql-python > mysqldb-2
diff tests/test_MySQLdb_capabilities.py @ 62:7fe4b0b37e8e MySQLdb
Fix #2671682. (from 1.2 branch)
author | adustman |
---|---|
date | Sun, 08 Mar 2009 17:50:34 +0000 |
parents | d55bfb1a4701 |
children | 34176b94a93f |
line wrap: on
line diff
--- a/tests/test_MySQLdb_capabilities.py Sun Mar 08 16:02:16 2009 +0000 +++ b/tests/test_MySQLdb_capabilities.py Sun Mar 08 17:50:34 2009 +0000 @@ -73,7 +73,15 @@ self.check_data_integrity( ('col1 char(1)','col2 char(1)'), generator) - + + def test_bug_2671682(self): + from MySQLdb.constants import ER + try: + self.cursor.execute("describe some_non_existent_table"); + except self.connection.ProgrammingError, msg: + self.failUnless(msg[0] == ER.NO_SUCH_TABLE) + + if __name__ == '__main__': if test_MySQLdb.leak_test: import gc