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

Unified Diff: build/android/pylib/base/test_dispatcher.py

Issue 132463007: Enable presubmit pylint in build/android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/base/test_dispatcher.py
diff --git a/build/android/pylib/base/test_dispatcher.py b/build/android/pylib/base/test_dispatcher.py
index 11374bbf45025bcf72d8e84ef3bf7b688dfdd7de..681fe0c5b7462082c5fb51c831b13bc5253dfbf4 100644
--- a/build/android/pylib/base/test_dispatcher.py
+++ b/build/android/pylib/base/test_dispatcher.py
@@ -23,7 +23,7 @@ from pylib import constants
from pylib.utils import reraiser_thread
from pylib.utils import watchdog_timer
-import base_test_result
+from . import base_test_result
DEFAULT_TIMEOUT = 7 * 60 # seven minutes
@@ -69,7 +69,9 @@ class _TestCollection(object):
tests: List of tests to put in the collection.
"""
- def __init__(self, tests=[]):
+ def __init__(self, tests=None):
+ if not tests:
+ tests = []
self._lock = threading.Lock()
self._tests = []
self._tests_in_progress = 0

Powered by Google App Engine
This is Rietveld 408576698