Skip to content

Commit

Permalink
Fix a couple of B018 errors
Browse files Browse the repository at this point in the history
  • Loading branch information
akx committed Jun 27, 2023
1 parent f0367fb commit 1bae144
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/messages/test_catalog.py
Expand Up @@ -455,7 +455,7 @@ def test_catalog_update():
assert len(cat) == 3

msg1 = cat['green']
msg1.string
assert msg1.string
assert msg1.locations == [('main.py', 99)]

msg2 = cat['blue']
Expand Down
2 changes: 1 addition & 1 deletion tests/test_support.py
Expand Up @@ -291,7 +291,7 @@ def raise_attribute_error():

proxy = support.LazyProxy(raise_attribute_error)
with pytest.raises(AttributeError) as exception:
proxy.value
_ = proxy.value

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

Expand Down

0 comments on commit 1bae144

Please sign in to comment.