summaryrefslogtreecommitdiffstats
path: root/tests/pytests
diff options
context:
space:
mode:
authorOto Šťáva <oto.stava@nic.cz>2023-06-07 08:15:41 +0200
committerOto Šťáva <oto.stava@nic.cz>2023-06-07 08:15:41 +0200
commit944d23e83bf0c428de3b84afbfa1a78a32c3a595 (patch)
tree532236d144686381458ae691bb30764272f68686 /tests/pytests
parentci/images/README: add KNOT_BRANCH explanation (diff)
downloadknot-resolver-944d23e83bf0c428de3b84afbfa1a78a32c3a595.tar.xz
knot-resolver-944d23e83bf0c428de3b84afbfa1a78a32c3a595.zip
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.
Diffstat (limited to 'tests/pytests')
-rw-r--r--tests/pytests/pylintrc1
-rw-r--r--tests/pytests/test_random_close.py2
2 files changed, 1 insertions, 2 deletions
diff --git a/tests/pytests/pylintrc b/tests/pytests/pylintrc
index 2c406be2..5e2b50b5 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 a7cc8777..cadd8ef7 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))