From e63af60d5b2e556074cd4b1466ef1cbd3ddf2100 Mon Sep 17 00:00:00 2001 From: cpwu Date: Sat, 21 May 2022 17:53:22 +0800 Subject: [PATCH] fix case --- tests/system-test/0-others/user_control.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/system-test/0-others/user_control.py b/tests/system-test/0-others/user_control.py index 327b1531d9..4b5be79a70 100644 --- a/tests/system-test/0-others/user_control.py +++ b/tests/system-test/0-others/user_control.py @@ -312,7 +312,7 @@ class TDTestCase: tdSql.query(sql) self.__change_user_priv(user=user, pre_priv=priv, invoke=True) if user.name != "root": - user.db_set.remove(dbname) if dbname else user.db_set.clear() + user.db_set.discard(dbname) if dbname else user.db_set.clear() time.sleep(1) def test_priv_change_current(self):