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

Unified Diff: build/android/pylib/chrome_test_server_spawner.py

Issue 153743008: Revert of Enable presubmit pylint in build/android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merging with changes to pylib/linker/test_case.py. Created 6 years, 10 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
« no previous file with comments | « build/android/pylib/base/test_dispatcher_unittest.py ('k') | build/android/pylib/cmd_helper.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/pylib/chrome_test_server_spawner.py
diff --git a/build/android/pylib/chrome_test_server_spawner.py b/build/android/pylib/chrome_test_server_spawner.py
index 43405876a1f86b0d5f03bd098d268a35963339f0..642e5223eaf6df06575b64f91a25e9e9bf316ac6 100644
--- a/build/android/pylib/chrome_test_server_spawner.py
+++ b/build/android/pylib/chrome_test_server_spawner.py
@@ -7,7 +7,6 @@
It's used to accept requests from the device to spawn and kill instances of the
chrome test server on the host.
"""
-# pylint: disable=W0702
import BaseHTTPServer
import json
@@ -21,12 +20,11 @@ import threading
import time
import urlparse
-from pylib import constants
-from pylib import ports
+import constants
+import ports
from pylib.forwarder import Forwarder
-
# Path that are needed to import necessary modules when launching a testserver.
os.environ['PYTHONPATH'] = os.environ.get('PYTHONPATH', '') + (':%s:%s:%s:%s:%s'
% (os.path.join(constants.DIR_SOURCE_ROOT, 'third_party'),
@@ -56,7 +54,7 @@ def _WaitUntil(predicate, max_attempts=5):
Whether the provided predicate was satisfied once (before the timeout).
"""
sleep_time_sec = 0.025
- for _ in xrange(1, max_attempts):
+ for attempt in xrange(1, max_attempts):
if predicate():
return True
time.sleep(sleep_time_sec)
@@ -128,7 +126,6 @@ class TestServerThread(threading.Thread):
# Anonymous pipe in order to get port info from test server.
self.pipe_in = None
self.pipe_out = None
- self.process = None
self.command_line = []
def _WaitToStartAndGetPortFromTestServer(self):
« no previous file with comments | « build/android/pylib/base/test_dispatcher_unittest.py ('k') | build/android/pylib/cmd_helper.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698