From 944d23e83bf0c428de3b84afbfa1a78a32c3a595 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Oto=20=C5=A0=C5=A5=C3=A1va?= Date: Wed, 7 Jun 2023 08:15:41 +0200 Subject: [PATCH] tests/pytests: adapt to new pylint New version of pylint removed the disabled `bad-continuation` check. It also added a parens check that we were violating in `test_random_close.py`, which is now fixed as well. --- tests/pytests/pylintrc | 1 - tests/pytests/test_random_close.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/pytests/pylintrc b/tests/pytests/pylintrc index 2c406be20..5e2b50b56 100644 --- a/tests/pytests/pylintrc +++ b/tests/pytests/pylintrc @@ -11,7 +11,6 @@ disable= line-too-long, # checked by flake8 invalid-name, broad-except, - bad-continuation, global-statement, no-else-return, redefined-outer-name, # commonly used with pytest fixtures diff --git a/tests/pytests/test_random_close.py b/tests/pytests/test_random_close.py index a7cc87779..cadd8ef73 100644 --- a/tests/pytests/test_random_close.py +++ b/tests/pytests/test_random_close.py @@ -18,7 +18,7 @@ import utils QPS = 500 -def random_string(size=32, chars=(string.ascii_lowercase + string.digits)): +def random_string(size=32, chars=string.ascii_lowercase + string.digits): return ''.join(random.choice(chars) for x in range(size)) -- 2.47.2