Fix some unidiomatic comparisons.
This commit is contained in:
parent
e227712e21
commit
288bf1524e
@ -424,7 +424,7 @@ def same_domain(url1, url2):
|
||||
if suffix1 == '':
|
||||
return url1.host() == url2.host()
|
||||
|
||||
if not suffix1 == suffix2:
|
||||
if suffix1 != suffix2:
|
||||
return False
|
||||
|
||||
domain1 = url1.host()[:-len(suffix1)].split('.')[-1]
|
||||
|
@ -1984,10 +1984,10 @@ class TestConfirmQuit:
|
||||
assert 'never' in completions
|
||||
assert 'multiple-tabs,downloads' in completions
|
||||
for val in completions:
|
||||
assert not 'always,' in val
|
||||
assert not ',always' in val
|
||||
assert not 'never,' in val
|
||||
assert not ',never' in val
|
||||
assert 'always,' not in val
|
||||
assert ',always' not in val
|
||||
assert 'never,' not in val
|
||||
assert ',never' not in val
|
||||
|
||||
|
||||
class TestFormatString:
|
||||
|
Loading…
Reference in New Issue
Block a user