diff options
author | Florian Bruhin <me@the-compiler.org> | 2021-12-03 11:51:16 +0100 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2021-12-03 12:04:59 +0100 |
commit | b84d68e8ee22cb1679799c9ca73397e81110ea34 (patch) | |
tree | 10bd4d4102e3822720f62849d4277b09234447c1 /tests | |
parent | 083148ea388e5384515b72fcb65defaac8b9b667 (diff) | |
download | qutebrowser-b84d68e8ee22cb1679799c9ca73397e81110ea34.tar.gz qutebrowser-b84d68e8ee22cb1679799c9ca73397e81110ea34.zip |
pylint: Enable for_any_all extension
Diffstat (limited to 'tests')
-rw-r--r-- | tests/end2end/fixtures/quteprocess.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/end2end/fixtures/quteprocess.py b/tests/end2end/fixtures/quteprocess.py index e1e4f8f50..e165ce5cf 100644 --- a/tests/end2end/fixtures/quteprocess.py +++ b/tests/end2end/fixtures/quteprocess.py @@ -48,10 +48,7 @@ instance_counter = itertools.count() def is_ignored_qt_message(pytestconfig, message): """Check if the message is listed in qt_log_ignore.""" regexes = pytestconfig.getini('qt_log_ignore') - for regex in regexes: - if re.search(regex, message): - return True - return False + return any(re.search(regex, message) for regex in regexes) def is_ignored_lowlevel_message(message): |