summaryrefslogtreecommitdiff
path: root/tests/sources/tar.py
diff options
context:
space:
mode:
authorBenjamin Schubert <ben.c.schubert@gmail.com>2019-03-09 10:35:38 +0000
committerBenjamin Schubert <ben.c.schubert@gmail.com>2019-03-20 09:38:42 +0000
commit010d10b611e5288ac9a105bce3efcfe85f01ba9f (patch)
treefb70390a89071f27586fdc8f86884770e47474f1 /tests/sources/tar.py
parentfaa85d293211239f1da2fb4c6ab4c910d238dd75 (diff)
downloadbuildstream-010d10b611e5288ac9a105bce3efcfe85f01ba9f.tar.gz
tests:lint: remove all unneccessary-parens errors from pylint
Diffstat (limited to 'tests/sources/tar.py')
-rw-r--r--tests/sources/tar.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/sources/tar.py b/tests/sources/tar.py
index 8d7d37c56..ed99036b2 100644
--- a/tests/sources/tar.py
+++ b/tests/sources/tar.py
@@ -147,7 +147,7 @@ def test_stage_default_basedir(cli, tmpdir, datafiles, srcdir):
original_dir = os.path.join(str(datafiles), "content", "a")
original_contents = list_dir_contents(original_dir)
checkout_contents = list_dir_contents(checkoutdir)
- assert(checkout_contents == original_contents)
+ assert checkout_contents == original_contents
# Test that a staged checkout matches what was tarred up, with an empty base-dir
@@ -176,7 +176,7 @@ def test_stage_no_basedir(cli, tmpdir, datafiles, srcdir):
original_dir = os.path.join(str(datafiles), "content")
original_contents = list_dir_contents(original_dir)
checkout_contents = list_dir_contents(checkoutdir)
- assert(checkout_contents == original_contents)
+ assert checkout_contents == original_contents
# Test that a staged checkout matches what was tarred up, with an explicit basedir
@@ -205,7 +205,7 @@ def test_stage_explicit_basedir(cli, tmpdir, datafiles, srcdir):
original_dir = os.path.join(str(datafiles), "content", "a")
original_contents = list_dir_contents(original_dir)
checkout_contents = list_dir_contents(checkoutdir)
- assert(checkout_contents == original_contents)
+ assert checkout_contents == original_contents
# Test that we succeed to extract tarballs with hardlinks when stripping the
@@ -241,7 +241,7 @@ def test_stage_contains_links(cli, tmpdir, datafiles):
original_dir = os.path.join(str(datafiles), "content", "base-directory")
original_contents = list_dir_contents(original_dir)
checkout_contents = list_dir_contents(checkoutdir)
- assert(checkout_contents == original_contents)
+ assert checkout_contents == original_contents
@pytest.mark.skipif(not HAVE_LZIP, reason='lzip is not available')
@@ -270,7 +270,7 @@ def test_stage_default_basedir_lzip(cli, tmpdir, datafiles, srcdir):
original_dir = os.path.join(str(datafiles), "content", "a")
original_contents = list_dir_contents(original_dir)
checkout_contents = list_dir_contents(checkoutdir)
- assert(checkout_contents == original_contents)
+ assert checkout_contents == original_contents
# Test that a tarball that contains a read only dir works
@@ -355,7 +355,7 @@ def test_use_netrc(cli, datafiles, server_type, tmpdir):
original_dir = os.path.join(str(datafiles), 'content', 'a')
original_contents = list_dir_contents(original_dir)
checkout_contents = list_dir_contents(checkoutdir)
- assert(checkout_contents == original_contents)
+ assert checkout_contents == original_contents
@pytest.mark.parametrize('server_type', ('FTP', 'HTTP'))