Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2016)

Unified Diff: build/android/pylib/linker/setup.py

Issue 132463007: Enable presubmit pylint in build/android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move disables into modules. Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: build/android/pylib/linker/setup.py
diff --git a/build/android/pylib/linker/setup.py b/build/android/pylib/linker/setup.py
index a13ea4d78b27315311e126e31170d4aa79308e69..2863b63241fec536a61ed38143e4c2fd3f202126 100644
--- a/build/android/pylib/linker/setup.py
+++ b/build/android/pylib/linker/setup.py
@@ -6,19 +6,17 @@
import os
import sys
-import types
-
-import test_case
-import test_runner
from pylib import constants
+from pylib.linker import test_case
+from pylib.linker import test_runner
sys.path.insert(0,
os.path.join(constants.DIR_SOURCE_ROOT, 'build', 'util', 'lib',
'common'))
import unittest_util
-def Setup(options, devices):
+def Setup(options, _devices):
"""Creates a list of test cases and a runner factory.
Returns:
@@ -39,7 +37,7 @@ def Setup(options, devices):
all_tests = [t for t in all_tests \
if t.qualified_name in filtered_test_names]
- def TestRunnerFactory(device, shard_index):
+ def TestRunnerFactory(device, _shard_index):
return test_runner.LinkerTestRunner(
device, options.tool, options.push_deps,
options.cleanup_test_files)

Powered by Google App Engine
This is Rietveld 408576698