summaryrefslogtreecommitdiff
path: root/tests/internals
diff options
context:
space:
mode:
authorBenjamin Schubert <ben.c.schubert@gmail.com>2019-03-09 11:33:13 +0000
committerBenjamin Schubert <ben.c.schubert@gmail.com>2019-03-20 09:38:42 +0000
commit377a1cc949037507e64affcc9ba19916f55aa09d (patch)
tree6cb7b7d77202918f1676bd2d79df06e177350a9c /tests/internals
parent010d10b611e5288ac9a105bce3efcfe85f01ba9f (diff)
downloadbuildstream-377a1cc949037507e64affcc9ba19916f55aa09d.tar.gz
tests:lint: remove all len comparisons existence check
We should be using "assert not list" and not "assert len(list) == 0"
Diffstat (limited to 'tests/internals')
-rw-r--r--tests/internals/yaml.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/internals/yaml.py b/tests/internals/yaml.py
index 31e788872..218917667 100644
--- a/tests/internals/yaml.py
+++ b/tests/internals/yaml.py
@@ -245,7 +245,7 @@ def test_list_deletion(datafiles):
_yaml.composite_dict(base, overlay)
children = _yaml.node_get(base, list, 'children')
- assert len(children) == 0
+ assert not children
# Tests for deep list composition