diff options
author | Benjamin Schubert <ben.c.schubert@gmail.com> | 2019-03-09 11:33:13 +0000 |
---|---|---|
committer | Benjamin Schubert <ben.c.schubert@gmail.com> | 2019-03-20 09:38:42 +0000 |
commit | 377a1cc949037507e64affcc9ba19916f55aa09d (patch) | |
tree | 6cb7b7d77202918f1676bd2d79df06e177350a9c /tests/internals | |
parent | 010d10b611e5288ac9a105bce3efcfe85f01ba9f (diff) | |
download | buildstream-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.py | 2 |
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 |