summaryrefslogtreecommitdiff
path: root/tests/unit/test_utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/test_utils.py')
-rw-r--r--tests/unit/test_utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit/test_utils.py b/tests/unit/test_utils.py
index 271ec629b..fc30ac33a 100644
--- a/tests/unit/test_utils.py
+++ b/tests/unit/test_utils.py
@@ -13,7 +13,7 @@ from tests import SearxTestCase
def random_string(length, choices=string.ascii_letters):
- return ''.join(random.choice(choices) for _ in range(length))
+ return ''.join(random.choices(choices, k=length))
class TestUtils(SearxTestCase):