Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions testsuite/gateway_logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
2 changes: 1 addition & 1 deletion testsuite/gateways/apicast/selfmanaged.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions testsuite/tests/ui/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -516,8 +516,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)}"


Expand Down
3 changes: 1 addition & 2 deletions testsuite/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())


Expand Down
Loading