summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortoofar <toofar@spalge.com>2023-08-02 20:45:03 +1200
committertoofar <toofar@spalge.com>2023-08-02 20:45:03 +1200
commit36abc475d445c9878b566cc06c12e00da92464bb (patch)
tree4d54a5f0f3856a5aac84115c1814f01cd583ffa1
parent4049bac356d51df9a4943fa9a83abb09feb74a01 (diff)
downloadqutebrowser-36abc475d445c9878b566cc06c12e00da92464bb.tar.gz
qutebrowser-36abc475d445c9878b566cc06c12e00da92464bb.zip
fix lint
Seems the new flake8 release is pulling down a (somewhat) new pycodestyle that prefers is/is not over ==/!= when comparing exact types. They should behave the same. ref: #7807
-rw-r--r--tests/helpers/testutils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/helpers/testutils.py b/tests/helpers/testutils.py
index f6d7fcc4b..dc6fdac32 100644
--- a/tests/helpers/testutils.py
+++ b/tests/helpers/testutils.py
@@ -150,7 +150,7 @@ def partial_compare(val1, val2, *, indent=0):
if val2 is Ellipsis:
print_i("Ignoring ellipsis comparison", indent, error=True)
return PartialCompareOutcome()
- elif type(val1) != type(val2): # pylint: disable=unidiomatic-typecheck
+ elif type(val1) is not type(val2):
outcome = PartialCompareOutcome(
"Different types ({}, {}) -> False".format(type(val1).__name__,
type(val2).__name__))