From: Oto Šťáva Date: Wed, 7 Jun 2023 06:15:41 +0000 (+0200) Subject: tests/pytests: adapt to new pylint X-Git-Tag: v5.7.0~6^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=944d23e83bf0c428de3b84afbfa1a78a32c3a595;p=thirdparty%2Fknot-resolver.git 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. --- 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))