未验证 提交 2b30d9e0 编写于 作者: S Shengliang Guan 提交者: GitHub

Merge pull request #3925 from taosdata/hotfix/testcase

[TD-1497]<test> python connector check
...@@ -45,6 +45,7 @@ class ConnectorChecker: ...@@ -45,6 +45,7 @@ class ConnectorChecker:
print("Failure sql: %s,exception: %s" % print("Failure sql: %s,exception: %s" %
sql,str(e)) sql,str(e))
def close(self): def close(self):
print("connetion closed.")
self.cl.close() self.cl.close()
self.conn.close() self.conn.close()
def createDatabase(self): def createDatabase(self):
...@@ -66,7 +67,6 @@ class ConnectorChecker: ...@@ -66,7 +67,6 @@ class ConnectorChecker:
sql = "select * from test.weather" sql = "select * from test.weather"
self.executeQuery(sql) self.executeQuery(sql)
def srun(self): def srun(self):
print(self.host)
try: try:
self.conn = taos.connect(host=self.host,user=self.user,password=self.password) self.conn = taos.connect(host=self.host,user=self.user,password=self.password)
#self.conn = taos.connect(self.host,self.user,self.password) #self.conn = taos.connect(self.host,self.user,self.password)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册