comparison tests/test_MySQLdb_capabilities.py @ 63:34176b94a93f MySQLdb

Add a connection.ping() test. Oh look, it's broken.
author adustman
date Wed, 11 Mar 2009 03:17:58 +0000
parents 7fe4b0b37e8e
children 7a60c4574baf
comparison
equal deleted inserted replaced
62:7fe4b0b37e8e 63:34176b94a93f
79 try: 79 try:
80 self.cursor.execute("describe some_non_existent_table"); 80 self.cursor.execute("describe some_non_existent_table");
81 except self.connection.ProgrammingError, msg: 81 except self.connection.ProgrammingError, msg:
82 self.failUnless(msg[0] == ER.NO_SUCH_TABLE) 82 self.failUnless(msg[0] == ER.NO_SUCH_TABLE)
83 83
84 def test_ping(self):
85 self.connection.ping()
86
84 87
85 if __name__ == '__main__': 88 if __name__ == '__main__':
86 if test_MySQLdb.leak_test: 89 if test_MySQLdb.leak_test:
87 import gc 90 import gc
88 gc.enable() 91 gc.enable()