diff options
author | Rahul Chaudhry <rahulchaudhry@chromium.org> | 2016-01-15 16:01:42 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-01-23 06:14:43 +0000 |
commit | 49f3f09f8b5f243949968d88ce7fd9efe1393ad9 (patch) | |
tree | 41c8bb7bd6ea665a081682cc4c91d1b6fe5cbcab | |
parent | e7c6fbf9cfd5f45dda21f2c4742bf5a62589d2ed (diff) | |
download | toolchain-utils-49f3f09f8b5f243949968d88ce7fd9efe1393ad9.tar.gz |
toolchain-utils: disable protected-access lint warnings in tests.
crosperf/experiment_runner_unittest.py and crosperf/machine_manager_unittest.py
had a combined total of 53 protected-access lint warnings.
BUG=chromium:570458
TEST='crosperf/run_tests.sh' passes.
Change-Id: Icc31a63f3383068620314fd440460ab82df463a5
Reviewed-on: https://chrome-internal-review.googlesource.com/244868
Commit-Ready: Rahul Chaudhry <rahulchaudhry@google.com>
Tested-by: Rahul Chaudhry <rahulchaudhry@google.com>
Reviewed-by: Luis Lozano <llozano@chromium.org>
-rwxr-xr-x | crosperf/experiment_runner_unittest.py | 2 | ||||
-rwxr-xr-x | crosperf/machine_manager_unittest.py | 2 | ||||
-rw-r--r-- | utils/tabulator_test.py | 1 |
3 files changed, 5 insertions, 0 deletions
diff --git a/crosperf/experiment_runner_unittest.py b/crosperf/experiment_runner_unittest.py index 3502ce60..c4ee2cf4 100755 --- a/crosperf/experiment_runner_unittest.py +++ b/crosperf/experiment_runner_unittest.py @@ -46,6 +46,8 @@ EXPERIMENT_FILE_1 = """ } """ +# pylint: disable=protected-access + class FakeLogger(object): """Fake logger for tests.""" diff --git a/crosperf/machine_manager_unittest.py b/crosperf/machine_manager_unittest.py index 0103ecdc..9889f9cd 100755 --- a/crosperf/machine_manager_unittest.py +++ b/crosperf/machine_manager_unittest.py @@ -23,6 +23,8 @@ from benchmark_run import MockBenchmarkRun from cros_utils import command_executer from cros_utils import logger +# pylint: disable=protected-access + class MyMachineManager(machine_manager.MachineManager): """Machine manager for test.""" diff --git a/utils/tabulator_test.py b/utils/tabulator_test.py index 4d15fdc8..21cd1e73 100644 --- a/utils/tabulator_test.py +++ b/utils/tabulator_test.py @@ -66,6 +66,7 @@ class TabulatorTest(unittest.TestCase): def testGmean(self): a = [1.0e+308] * 3 + # pylint: disable=protected-access b = tabulator.Result()._GetGmean(a) self.assertTrue(b >= 0.99e+308 and b <= 1.01e+308) |