summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Schubert <ben.c.schubert@gmail.com>2019-03-09 15:14:41 +0000
committerBenjamin Schubert <ben.c.schubert@gmail.com>2019-03-20 09:38:42 +0000
commitba62835edaa2af230122d9c104209085336b9fb2 (patch)
tree45b5d4b08f893f53fc0f71362cd9bc5d53ffc370
parent2f993f13564942d9c80e66b0c431a6319f26fed6 (diff)
downloadbuildstream-ba62835edaa2af230122d9c104209085336b9fb2.tar.gz
tests:lint: fix all ungrouped imports
-rw-r--r--tests/examples/developing.py2
-rw-r--r--tests/external_plugins.py4
2 files changed, 2 insertions, 4 deletions
diff --git a/tests/examples/developing.py b/tests/examples/developing.py
index a5e3c2d9a..86046a0b8 100644
--- a/tests/examples/developing.py
+++ b/tests/examples/developing.py
@@ -1,9 +1,9 @@
import os
import pytest
-import tests.testutils.patch as patch
from buildstream.plugintestutils import cli_integration as cli
from buildstream.plugintestutils.integration import assert_contains
+import tests.testutils.patch as patch
from tests.testutils.site import HAVE_BWRAP, IS_LINUX, MACHINE_ARCH
pytestmark = pytest.mark.integration
diff --git a/tests/external_plugins.py b/tests/external_plugins.py
index b45f0ece1..961c3b5ec 100644
--- a/tests/external_plugins.py
+++ b/tests/external_plugins.py
@@ -70,14 +70,12 @@ def run_repo_tests(repo, tmpdir, pytest_args):
if __name__ == "__main__":
- from sys import argv
-
# Args:
# tmpdir: The directory in which this script will clone external
# repositories and use pytest's tmpdir.
# pytest_args: any remaining arguments to this script will be passed
# directly to it's pytest invocations
- _, tmpdir, *pytest_args = argv
+ _, tmpdir, *pytest_args = sys.argv
ALL_EXTERNAL_PLUGINS = [
ExternalPluginRepo(