diff --git a/testsuite/gateway_logs.py b/testsuite/gateway_logs.py index 5e7c28955..53da656bd 100644 --- a/testsuite/gateway_logs.py +++ b/testsuite/gateway_logs.py @@ -66,8 +66,7 @@ def _print_logs(item, start_time, phase, suffix): item.add_report_section( phase, "stdout", _generate_log_section(name, "Gateway doesn't have LOGS capability") ) - # pylint: disable=broad-except - except Exception as exc: + except Exception as exc: # pylint: disable=broad-exception-caught item.add_report_section( phase, "stderr", f"({suffix}) Exception encountered while getting gateway logs: {exc}\n" ) diff --git a/testsuite/gateways/apicast/selfmanaged.py b/testsuite/gateways/apicast/selfmanaged.py index 6a3482373..99d9952ef 100644 --- a/testsuite/gateways/apicast/selfmanaged.py +++ b/testsuite/gateways/apicast/selfmanaged.py @@ -19,7 +19,7 @@ class NoSuitableApicastError(Exception): # pylint: disable=too-many-instance-attributes -class SelfManagedApicast(AbstractApicast): +class SelfManagedApicast(AbstractApicast): # pylint: disable=abstract-method """Gateway for use with already deployed self-managed APIcast in OpenShift This is a "special" class behaving bit more dynamically during diff --git a/testsuite/tests/ui/conftest.py b/testsuite/tests/ui/conftest.py index 97b77a44b..4fedbf7f2 100644 --- a/testsuite/tests/ui/conftest.py +++ b/testsuite/tests/ui/conftest.py @@ -534,8 +534,7 @@ def fullpage_screenshot(driver, file_path): fullpath = f"{file_path}/{date}.png" stitched_image.save(fullpath) return fullpath - # pylint: disable=broad-exception-caught - except Exception as e: + except Exception as e: # pylint: disable=broad-exception-caught return f"Error: Failed to take full-page screenshot. Details: {str(e)}" diff --git a/testsuite/utils.py b/testsuite/utils.py index 476809897..951998d38 100644 --- a/testsuite/utils.py +++ b/testsuite/utils.py @@ -36,8 +36,7 @@ def _whoami(): try: return os.getlogin() # want to catch broad exception and fallback at any circumstance - # pylint: disable=broad-except - except Exception: + except Exception: # pylint: disable=broad-exception-caught return str(os.getuid())