From: Aarni Koskela Date: Tue, 27 Jun 2023 19:42:18 +0000 (+0300) Subject: Fix a couple of B018 errors X-Git-Tag: v2.13.0~7^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=503ed1aef9bb2ce71f737f98ca653ccf3088c87e;p=thirdparty%2Fbabel.git Fix a couple of B018 errors --- 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'