From b3ae3cbadce5fd1350a5223609dc1cffcf2f7e10 Mon Sep 17 00:00:00 2001 From: cpwu Date: Thu, 12 May 2022 19:50:13 +0800 Subject: [PATCH] fix case --- tests/system-test/0-others/user_control.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/system-test/0-others/user_control.py b/tests/system-test/0-others/user_control.py index a453058ea9..a7c79baea0 100644 --- a/tests/system-test/0-others/user_control.py +++ b/tests/system-test/0-others/user_control.py @@ -242,10 +242,10 @@ class TDTestCase: # 普通用户权限 _, user = self.user_login(self.__user_list[0], f"new{self.__passwd_list[0]}") with taos_connect(self.__user_list[0], f"new{self.__passwd_list[0]}") as conn: - user = conn.cursor() - user_err = conn.error() + user = conn # 不能创建用户 - user_err("create use utest1 pass 'utest1pass'") + tdLog.printNoPrefix("==========step4: normal user can not create user") + user.error("create use utest1 pass 'utest1pass'") # 删除用户测试 -- GitLab