[TD-1497]<test> python connector check

This commit is contained in:
liuyq-617 2020-10-20 09:59:58 +08:00
parent 206a1ccb3e
commit badbbe70dd
1 changed files with 1 additions and 1 deletions

View File

@ -45,6 +45,7 @@ class ConnectorChecker:
print("Failure sql: %s,exception: %s" %
sql,str(e))
def close(self):
print("connetion closed.")
self.cl.close()
self.conn.close()
def createDatabase(self):
@ -66,7 +67,6 @@ class ConnectorChecker:
sql = "select * from test.weather"
self.executeQuery(sql)
def srun(self):
print(self.host)
try:
self.conn = taos.connect(host=self.host,user=self.user,password=self.password)
#self.conn = taos.connect(self.host,self.user,self.password)