diff options
author | Gökçen Nurlu <gnurlu1@bloomberg.net> | 2017-12-05 16:15:59 +0000 |
---|---|---|
committer | Gökçen Nurlu <gnurlu1@bloomberg.net> | 2017-12-07 14:25:40 +0000 |
commit | fe720cbdd7bbc79efce8e7dc5fd2005af973aa05 (patch) | |
tree | c246bd35c9b8f70946475af3f42bd77b2dd353f4 | |
parent | 7674f6a137541072bfe60a77502d67698b47b703 (diff) | |
download | buildstream-fe720cbdd7bbc79efce8e7dc5fd2005af973aa05.tar.gz |
Remove unused imports in test files
-rw-r--r-- | tests/format/assertion.py | 1 | ||||
-rw-r--r-- | tests/format/listdirectiveerrors.py | 1 | ||||
-rw-r--r-- | tests/format/optionexports.py | 1 | ||||
-rw-r--r-- | tests/format/projectoverrides.py | 1 | ||||
-rw-r--r-- | tests/frontend/buildcheckout.py | 1 | ||||
-rw-r--r-- | tests/frontend/track.py | 1 | ||||
-rw-r--r-- | tests/frontend/version.py | 1 | ||||
-rw-r--r-- | tests/pipeline/load.py | 6 | ||||
-rw-r--r-- | tests/plugins/pipeline.py | 1 | ||||
-rw-r--r-- | tests/plugins/third_party.py | 1 | ||||
-rw-r--r-- | tests/project/plugins.py | 1 | ||||
-rw-r--r-- | tests/sources/tar.py | 2 | ||||
-rw-r--r-- | tests/sources/zip.py | 2 | ||||
-rw-r--r-- | tests/testutils/repo/bzr.py | 1 | ||||
-rw-r--r-- | tests/testutils/repo/git.py | 1 | ||||
-rw-r--r-- | tests/testutils/repo/tar.py | 1 | ||||
-rw-r--r-- | tests/testutils/repo/zip.py | 1 |
17 files changed, 2 insertions, 22 deletions
diff --git a/tests/format/assertion.py b/tests/format/assertion.py index 27a3d3fc7..e2c4d7d23 100644 --- a/tests/format/assertion.py +++ b/tests/format/assertion.py @@ -1,6 +1,5 @@ import os import pytest -from buildstream import _yaml from buildstream._exceptions import LoadError, LoadErrorReason from tests.testutils.runcli import cli diff --git a/tests/format/listdirectiveerrors.py b/tests/format/listdirectiveerrors.py index 8a5d4f152..c069f3764 100644 --- a/tests/format/listdirectiveerrors.py +++ b/tests/format/listdirectiveerrors.py @@ -1,6 +1,5 @@ import os import pytest -from buildstream import _yaml from buildstream._exceptions import LoadError, LoadErrorReason from tests.testutils.runcli import cli diff --git a/tests/format/optionexports.py b/tests/format/optionexports.py index d824f0306..9b009774d 100644 --- a/tests/format/optionexports.py +++ b/tests/format/optionexports.py @@ -1,7 +1,6 @@ import os import pytest from buildstream import _yaml -from buildstream._exceptions import LoadError, LoadErrorReason from tests.testutils.runcli import cli # Project directory diff --git a/tests/format/projectoverrides.py b/tests/format/projectoverrides.py index 1824ff0be..13bce6373 100644 --- a/tests/format/projectoverrides.py +++ b/tests/format/projectoverrides.py @@ -2,7 +2,6 @@ import os import pytest from buildstream import _yaml -from buildstream._exceptions import LoadError, LoadErrorReason from tests.testutils.runcli import cli # Project directory diff --git a/tests/frontend/buildcheckout.py b/tests/frontend/buildcheckout.py index a1535b24d..b5b294512 100644 --- a/tests/frontend/buildcheckout.py +++ b/tests/frontend/buildcheckout.py @@ -1,7 +1,6 @@ import os import pytest from tests.testutils import cli, create_repo, ALL_REPO_KINDS -from tests.testutils.site import HAVE_OSTREE from buildstream import _yaml from buildstream._pipeline import PipelineError diff --git a/tests/frontend/track.py b/tests/frontend/track.py index 6b704c8b9..f83237545 100644 --- a/tests/frontend/track.py +++ b/tests/frontend/track.py @@ -1,7 +1,6 @@ import os import pytest from tests.testutils import cli, create_repo, ALL_REPO_KINDS -from tests.testutils.site import HAVE_OSTREE from buildstream import _yaml diff --git a/tests/frontend/version.py b/tests/frontend/version.py index cd6da8bd7..69112d685 100644 --- a/tests/frontend/version.py +++ b/tests/frontend/version.py @@ -1,4 +1,3 @@ -import pytest from tests.testutils.runcli import cli # For utils.get_bst_version() diff --git a/tests/pipeline/load.py b/tests/pipeline/load.py index 80a366a6b..1414067e2 100644 --- a/tests/pipeline/load.py +++ b/tests/pipeline/load.py @@ -2,12 +2,6 @@ import os import pytest from tests.testutils.runcli import cli -from buildstream import Scope -from buildstream._context import Context -from buildstream._project import Project -from buildstream._pipeline import Pipeline -from buildstream._platform import Platform - DATA_DIR = os.path.join( os.path.dirname(os.path.realpath(__file__)), 'load', diff --git a/tests/plugins/pipeline.py b/tests/plugins/pipeline.py index 8f8525318..c659aa34e 100644 --- a/tests/plugins/pipeline.py +++ b/tests/plugins/pipeline.py @@ -1,7 +1,6 @@ import os import pytest -from buildstream import Scope from buildstream._context import Context from buildstream._project import Project from buildstream._exceptions import PluginError diff --git a/tests/plugins/third_party.py b/tests/plugins/third_party.py index b82f112fe..35705358a 100644 --- a/tests/plugins/third_party.py +++ b/tests/plugins/third_party.py @@ -1,6 +1,5 @@ import os import pytest -import pkg_resources from pluginbase import PluginBase from buildstream._elementfactory import ElementFactory diff --git a/tests/project/plugins.py b/tests/project/plugins.py index ea21730b6..7932fcd6a 100644 --- a/tests/project/plugins.py +++ b/tests/project/plugins.py @@ -1,7 +1,6 @@ import os import pytest -from buildstream import Scope from buildstream._context import Context from buildstream._project import Project from buildstream._pipeline import Pipeline diff --git a/tests/sources/tar.py b/tests/sources/tar.py index b90a5c5ab..b1859a81a 100644 --- a/tests/sources/tar.py +++ b/tests/sources/tar.py @@ -5,7 +5,7 @@ import tempfile import subprocess from buildstream._pipeline import PipelineError -from buildstream import utils, _yaml +from buildstream import _yaml from tests.testutils import cli from tests.testutils.site import HAVE_LZIP diff --git a/tests/sources/zip.py b/tests/sources/zip.py index dee85baa2..2fd0c04aa 100644 --- a/tests/sources/zip.py +++ b/tests/sources/zip.py @@ -3,7 +3,7 @@ import pytest import zipfile from buildstream._pipeline import PipelineError -from buildstream import utils, _yaml +from buildstream import _yaml from tests.testutils import cli DATA_DIR = os.path.join( diff --git a/tests/testutils/repo/bzr.py b/tests/testutils/repo/bzr.py index b6e68411d..8b0b6c295 100644 --- a/tests/testutils/repo/bzr.py +++ b/tests/testutils/repo/bzr.py @@ -1,5 +1,4 @@ import os -import shutil import subprocess import pytest diff --git a/tests/testutils/repo/git.py b/tests/testutils/repo/git.py index 46338f445..e04abcb86 100644 --- a/tests/testutils/repo/git.py +++ b/tests/testutils/repo/git.py @@ -1,4 +1,3 @@ -import shutil import subprocess import pytest diff --git a/tests/testutils/repo/tar.py b/tests/testutils/repo/tar.py index 158a04891..ee6cb77b3 100644 --- a/tests/testutils/repo/tar.py +++ b/tests/testutils/repo/tar.py @@ -1,6 +1,5 @@ import os import tarfile -import hashlib from buildstream.utils import sha256sum diff --git a/tests/testutils/repo/zip.py b/tests/testutils/repo/zip.py index 47c402421..32a46984e 100644 --- a/tests/testutils/repo/zip.py +++ b/tests/testutils/repo/zip.py @@ -1,4 +1,3 @@ -import hashlib import os import zipfile |