diff --git a/tests/ci/functional_test_check.py b/tests/ci/functional_test_check.py index 3531a55f8ae..41c7ed963c9 100644 --- a/tests/ci/functional_test_check.py +++ b/tests/ci/functional_test_check.py @@ -226,7 +226,8 @@ def parse_args(): def main(): logging.basicConfig(level=logging.INFO) for handler in logging.root.handlers: - handler.setFormatter(SensitiveFormatter(handler.formatter._fmt)) + # pylint: disable=protected-access + handler.setFormatter(SensitiveFormatter(handler.formatter._fmt)) # type: ignore stopwatch = Stopwatch() diff --git a/tests/ci/stress_check.py b/tests/ci/stress_check.py index 83a410551a1..85da601e379 100644 --- a/tests/ci/stress_check.py +++ b/tests/ci/stress_check.py @@ -131,7 +131,8 @@ def process_results( def run_stress_test(docker_image_name: str) -> None: logging.basicConfig(level=logging.INFO) for handler in logging.root.handlers: - handler.setFormatter(SensitiveFormatter(handler.formatter._fmt)) + # pylint: disable=protected-access + handler.setFormatter(SensitiveFormatter(handler.formatter._fmt)) # type: ignore stopwatch = Stopwatch() temp_path = Path(TEMP_PATH)