diff options
author | Benjamin Schubert <ben.c.schubert@gmail.com> | 2019-03-19 18:56:21 +0000 |
---|---|---|
committer | Benjamin Schubert <ben.c.schubert@gmail.com> | 2019-03-20 09:38:42 +0000 |
commit | d5aa6720431db86ce429719f86b4b18ab786aa58 (patch) | |
tree | e45901c1b002f20d05ba8485a15fbe4cc4bab246 /tests | |
parent | 481efa5e59a22c1b61e1d8ea89302a59f8254dc3 (diff) | |
download | buildstream-d5aa6720431db86ce429719f86b4b18ab786aa58.tar.gz |
tests:lint: fix all unused-import from pylint
Removes all the ones thare were not needed
Whitelist the ones that are actually needed for side effects
Diffstat (limited to 'tests')
-rw-r--r-- | tests/frontend/buildcheckout.py | 2 | ||||
-rw-r--r-- | tests/frontend/fetch.py | 2 | ||||
-rw-r--r-- | tests/frontend/mirror.py | 4 | ||||
-rw-r--r-- | tests/internals/storage_vdir_import.py | 1 | ||||
-rw-r--r-- | tests/testutils/site.py | 4 |
5 files changed, 6 insertions, 7 deletions
diff --git a/tests/frontend/buildcheckout.py b/tests/frontend/buildcheckout.py index d8e4d2e42..a04edf6ee 100644 --- a/tests/frontend/buildcheckout.py +++ b/tests/frontend/buildcheckout.py @@ -6,7 +6,7 @@ import subprocess import pytest from tests.testutils.site import IS_WINDOWS -from tests.testutils import create_repo, generate_junction +from tests.testutils import generate_junction from buildstream.plugintestutils import cli from buildstream import _yaml diff --git a/tests/frontend/fetch.py b/tests/frontend/fetch.py index 5f2b63791..56bc551b6 100644 --- a/tests/frontend/fetch.py +++ b/tests/frontend/fetch.py @@ -1,7 +1,7 @@ import os import pytest -from tests.testutils import create_repo, ALL_REPO_KINDS, generate_junction +from tests.testutils import create_repo, generate_junction from buildstream.plugintestutils import cli from buildstream import _yaml diff --git a/tests/frontend/mirror.py b/tests/frontend/mirror.py index 55bb8a328..3f1d7181f 100644 --- a/tests/frontend/mirror.py +++ b/tests/frontend/mirror.py @@ -1,12 +1,12 @@ import os import pytest -from tests.testutils import create_repo, generate_junction +from tests.testutils import create_repo from buildstream import _yaml -from buildstream._exceptions import ErrorDomain from buildstream.plugintestutils import cli + # Project directory TOP_DIR = os.path.dirname(os.path.realpath(__file__)) DATA_DIR = os.path.join(TOP_DIR, 'project') diff --git a/tests/internals/storage_vdir_import.py b/tests/internals/storage_vdir_import.py index 01f08ca5c..9d42c6e8d 100644 --- a/tests/internals/storage_vdir_import.py +++ b/tests/internals/storage_vdir_import.py @@ -4,7 +4,6 @@ import random import pytest -from buildstream.plugintestutils import cli from buildstream.storage._casbaseddirectory import CasBasedDirectory from buildstream.storage._filebaseddirectory import FileBasedDirectory from buildstream._cas import CASCache diff --git a/tests/testutils/site.py b/tests/testutils/site.py index 2f4143407..17c84cd8d 100644 --- a/tests/testutils/site.py +++ b/tests/testutils/site.py @@ -32,7 +32,7 @@ except ProgramNotFoundError: HAVE_OSTREE_CLI = False try: - from buildstream import _ostree + from buildstream import _ostree # pylint: disable=unused-import HAVE_OSTREE = True except (ImportError, ValueError): HAVE_OSTREE = False @@ -52,7 +52,7 @@ except ProgramNotFoundError: HAVE_LZIP = False try: - import arpy + import arpy # pylint: disable=unused-import HAVE_ARPY = True except ImportError: HAVE_ARPY = False |