aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/testing_commands.py
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2015-06-03 20:29:13 -0400
committerCorey Farwell <coreyf@rwell.org>2015-06-04 11:17:34 -0400
commit848c57653ce1b023a324fb9442059228f5372188 (patch)
treeb7ca6475822fcc2220bfb3d5f76b8d6f5775b957 /python/servo/testing_commands.py
parent907c051bd1d59621449a399ccf6845b617bdff9d (diff)
downloadservo-848c57653ce1b023a324fb9442059228f5372188.tar.gz
servo-848c57653ce1b023a324fb9442059228f5372188.zip
Add flake8 to the tidy process for Python files
Fixes #6236 Also included in this commit are the changes need to make flake8 pass for the existing python file
Diffstat (limited to 'python/servo/testing_commands.py')
-rw-r--r--python/servo/testing_commands.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/python/servo/testing_commands.py b/python/servo/testing_commands.py
index 2274c84c8ed..5d656b2bc97 100644
--- a/python/servo/testing_commands.py
+++ b/python/servo/testing_commands.py
@@ -281,7 +281,6 @@ class MachCommands(CommandBase):
execfile(run_file, run_globals)
return run_globals["update_tests"](**kwargs)
-
def ensure_wpt_virtualenv(self):
virtualenv_path = path.join("tests", "wpt", "_virtualenv")
python = self.get_exec("python2", "python")
@@ -295,8 +294,8 @@ class MachCommands(CommandBase):
execfile(activate_path, dict(__file__=activate_path))
try:
- import wptrunner
- from wptrunner.browsers import servo
+ import wptrunner # noqa
+ from wptrunner.browsers import servo # noqa
except ImportError:
subprocess.check_call(["pip", "install", "-r",
path.join("tests", "wpt", "harness", "requirements.txt")])
@@ -311,7 +310,7 @@ class MachCommands(CommandBase):
# before the virtualenv is initalised it doesn't see the blessings module so we don't
# get coloured output. Setting the blessings global explicitly fixes that.
from mozlog.structured.formatters import machformatter
- import blessings
+ import blessings # noqa
machformatter.blessings = blessings
def get_exec(self, name, default=None):