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:
parent
321587ad41
commit
a5be1cc4d2
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue