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

Unified Diff: build/android/pylib/host_driven/test_info_collection.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/host_driven/test_case.py ('k') | build/android/pylib/host_driven/test_runner.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/pylib/host_driven/test_info_collection.py
diff --git a/build/android/pylib/host_driven/test_info_collection.py b/build/android/pylib/host_driven/test_info_collection.py
index b0b76a9819881bca3fbe2e209372fd393ed2a747..a857d3c1cdf2e63b92c3f62cda2d860f85517732 100644
--- a/build/android/pylib/host_driven/test_info_collection.py
+++ b/build/android/pylib/host_driven/test_info_collection.py
@@ -7,7 +7,7 @@
import logging
import os
-from pylib.host_driven import tests_annotations
+import tests_annotations
class TestInfo(object):
@@ -22,8 +22,7 @@ class TestInfo(object):
self.set_up = set_up
self.tear_down = tear_down
- @staticmethod
- def _GetQualifiedName(runnable):
+ def _GetQualifiedName(self, runnable):
"""Helper method to infer a runnable's name and module name.
Many filters and lists presuppose a format of module_name.testMethodName.
@@ -103,8 +102,7 @@ class TestInfoCollection(object):
return available_tests
- @staticmethod
- def _AnnotationIncludesTest(test_info, annotation_filter_list):
+ def _AnnotationIncludesTest(self, test_info, annotation_filter_list):
"""Checks whether a given test represented by test_info matches annotation.
Args:
@@ -130,8 +128,7 @@ class TestInfoCollection(object):
return True
return False
- @staticmethod
- def _NameFilterIncludesTest(test_info, name_filter):
+ def _NameFilterIncludesTest(self, test_info, name_filter):
"""Checks whether a name filter matches a given test_info's method name.
This is a case-sensitive, substring comparison: 'Foo' will match methods
« no previous file with comments | « build/android/pylib/host_driven/test_case.py ('k') | build/android/pylib/host_driven/test_runner.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698