From 503ed1aef9bb2ce71f737f98ca653ccf3088c87e Mon Sep 17 00:00:00 2001 From: Aarni Koskela Date: Tue, 27 Jun 2023 22:42:18 +0300 Subject: [PATCH] Fix a couple of B018 errors --- tests/messages/test_catalog.py | 2 +- tests/test_support.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/messages/test_catalog.py b/tests/messages/test_catalog.py index da8ad557..8f5b4974 100644 --- a/tests/messages/test_catalog.py +++ b/tests/messages/test_catalog.py @@ -455,7 +455,7 @@ def test_catalog_update(): assert len(cat) == 3 msg1 = cat['green'] - msg1.string + assert not msg1.string assert msg1.locations == [('main.py', 99)] msg2 = cat['blue'] diff --git a/tests/test_support.py b/tests/test_support.py index 493d5515..92188a4c 100644 --- a/tests/test_support.py +++ b/tests/test_support.py @@ -291,7 +291,7 @@ class LazyProxyTestCase(unittest.TestCase): proxy = support.LazyProxy(raise_attribute_error) with pytest.raises(AttributeError) as exception: - proxy.value + _ = proxy.value assert str(exception.value) == 'message' -- 2.47.2