summaryrefslogtreecommitdiff
path: root/tests/frontend/workspace.py
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/frontend/workspace.py
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/frontend/workspace.py')
-rw-r--r--tests/frontend/workspace.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/frontend/workspace.py b/tests/frontend/workspace.py
index 1a8119124..265545fc7 100644
--- a/tests/frontend/workspace.py
+++ b/tests/frontend/workspace.py
@@ -203,8 +203,8 @@ def test_open_multi(cli, tmpdir, datafiles):
elif kind == 'bzr':
assert '.bzr' in workspace_lsdir
else:
- assert not '.git' in workspace_lsdir
- assert not '.bzr' in workspace_lsdir
+ assert '.git' not in workspace_lsdir
+ assert '.bzr' not in workspace_lsdir
@pytest.mark.skipif(os.geteuid() == 0, reason="root may have CAP_DAC_OVERRIDE and ignore permissions")