From a5be1cc4d2beb34131a3b079c4ea035f9e342eb4 Mon Sep 17 00:00:00 2001 From: Simon de Vlieger Date: Thu, 18 Aug 2022 09:18:49 +0200 Subject: [PATCH] linting: `use-implicit-booleaness-not-comparison` Newer warning from pylint, also consistent with how we do things elsewhere. Note that this only applies to one file in the tests but disabling it would be very weird for such a small fix. --- test/mod/test_osbuild.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/mod/test_osbuild.py b/test/mod/test_osbuild.py index 1eaa3899..693b3241 100644 --- a/test/mod/test_osbuild.py +++ b/test/mod/test_osbuild.py @@ -207,7 +207,7 @@ class TestDescriptions(unittest.TestCase): # check an empty input leads to an empty list res = manifest.depsolve(store, []) - assert res == [] + assert not res # the build pipeline should resolve to just itself res = manifest.depsolve(store, names(build)) @@ -250,7 +250,7 @@ class TestDescriptions(unittest.TestCase): store.have.clear() store.have.add(image.id) res = manifest.depsolve(store, names(image)) - assert res == [] + assert not res # we have a checkpoint of the stage in the image # pipeline with the `dep` dependency, so that