]> git.ipfire.org Git - thirdparty/babel.git/commitdiff
Fix a couple of B018 errors
authorAarni Koskela <akx@iki.fi>
Tue, 27 Jun 2023 19:42:18 +0000 (22:42 +0300)
committerAarni Koskela <akx@iki.fi>
Tue, 27 Jun 2023 19:55:01 +0000 (22:55 +0300)
tests/messages/test_catalog.py
tests/test_support.py

index da8ad557756e542de874d24bc64ee24926f26c82..8f5b4974f2452063037390815f3a015dbf1f117b 100644 (file)
@@ -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']
index 493d5515130fa515abca66edad340e0deed96736..92188a4cb7f58439a248972e26908e27ed6bc05d 100644 (file)
@@ -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'