Skip to content

Commit 503ed1a

Browse files
committed
Fix a couple of B018 errors
1 parent f0367fb commit 503ed1a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/messages/test_catalog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ def test_catalog_update():
455455
assert len(cat) == 3
456456

457457
msg1 = cat['green']
458-
msg1.string
458+
assert not msg1.string
459459
assert msg1.locations == [('main.py', 99)]
460460

461461
msg2 = cat['blue']

tests/test_support.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ def raise_attribute_error():
291291

292292
proxy = support.LazyProxy(raise_attribute_error)
293293
with pytest.raises(AttributeError) as exception:
294-
proxy.value
294+
_ = proxy.value
295295

296296
assert str(exception.value) == 'message'
297297

0 commit comments

Comments
 (0)