]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
tests/pytests: adapt to new pylint
authorOto Šťáva <oto.stava@nic.cz>
Wed, 7 Jun 2023 06:15:41 +0000 (08:15 +0200)
committerOto Šťáva <oto.stava@nic.cz>
Wed, 7 Jun 2023 06:15:41 +0000 (08:15 +0200)
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
tests/pytests/test_random_close.py

index 2c406be20d7b2b8ae0504abc9f7213f48175fa78..5e2b50b56fdab6566bc97dba25983aeca8a27110 100644 (file)
@@ -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
index a7cc877792af57f2a77bc9eaee5b89c1f493d9de..cadd8ef73d817dcf07afffa18306869f8a748318 100644 (file)
@@ -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))