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.
This commit is contained in:
Simon de Vlieger 2022-08-18 09:18:49 +02:00 committed by David Rheinsberg
parent 321587ad41
commit a5be1cc4d2

View file

@ -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