Remove protected-access disable from //testing
Removes protected-access from the list of disabled checks in
//testing's pylintrc file and fixes/suppresses found issues.
Requires crrev.com/c/5792034 to land and roll first.
Bug: 353942917
Change-Id: I199557a27c3b0ddd127c40fca60aa6dfc7b1037c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5791830
Reviewed-by: Kentaro Hara <[email protected]>
Reviewed-by: Ben Pastene <[email protected]>
Commit-Queue: Brian Sheedy <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1348412}
NOKEYCHECK=True
GitOrigin-RevId: d776270bcf4c6df7a5f63004c46328a75a294a2b
diff --git a/rust_main_program_unittests.py b/rust_main_program_unittests.py
index 6db43a0..5d10507 100755
--- a/rust_main_program_unittests.py
+++ b/rust_main_program_unittests.py
@@ -20,6 +20,8 @@
from rust_main_program import _parse_args
from rust_main_program import _TestExecutableWrapper
+# Protected access is allowed for unittests.
+# pylint: disable=protected-access
class Tests(fake_filesystem_unittest.TestCase):
def test_format_test_name(self):
diff --git a/test_filtering_unittests.py b/test_filtering_unittests.py
index 51c7464..bc70cb3 100755
--- a/test_filtering_unittests.py
+++ b/test_filtering_unittests.py
@@ -16,6 +16,8 @@
from test_filtering import _TestFiltersGroup
from test_filtering import _SetOfTestFiltersGroups
+# Protected access is allowed for unittests.
+# pylint: disable=protected-access
class FilterTests(fake_filesystem_unittest.TestCase):
def test_exact_match(self):