From 133e4f5fee816c3694da21741dfeaa58655ef9a8 Mon Sep 17 00:00:00 2001 From: shixuantong Date: Thu, 17 Oct 2024 19:03:58 +0800 Subject: [PATCH] fix _get_str_class_num --- tests/unittests/config/test_cc_set_passwords.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unittests/config/test_cc_set_passwords.py b/tests/unittests/config/test_cc_set_passwords.py index 73cb3d4906c..c068f62d84f 100644 --- a/tests/unittests/config/test_cc_set_passwords.py +++ b/tests/unittests/config/test_cc_set_passwords.py @@ -566,7 +566,7 @@ def _get_str_class_num(self, str): [ any(c.islower() for c in str), any(c.isupper() for c in str), - any(c.isupper() for c in str), + any(c.isdigit() for c in str), any(c in string.punctuation for c in str), ] )