From 2ed664708da1f53a7d3a0b079ff3604a27fd79b2 Mon Sep 17 00:00:00 2001 From: cpwu Date: Thu, 12 May 2022 19:08:35 +0800 Subject: [PATCH] fix case --- tests/system-test/0-others/user_control.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/system-test/0-others/user_control.py b/tests/system-test/0-others/user_control.py index 52df5545b6..981b033f19 100644 --- a/tests/system-test/0-others/user_control.py +++ b/tests/system-test/0-others/user_control.py @@ -169,8 +169,8 @@ class TDTestCase: login_except = False tdLog.printNoPrefix(login_except) try: - with taos_connect(user=user, passwd=passwd) as conn: - cursor = conn.cursor() + with taos_connect(user=user, passwd=passwd) as cursor: + cursor except BaseException: login_except = True cursor = None