Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
HardNorth committed Oct 17, 2024
1 parent 9226957 commit a18098d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytest_reportportal/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ def check_connection(agent_config: AgentConfig):


# no 'config' type for backward compatibility for older pytest versions
# noinspection PyProtectedMember
def pytest_configure(config) -> None:
"""Update Config object with attributes required for reporting to RP.
Expand All @@ -200,7 +201,6 @@ def pytest_configure(config) -> None:
config.getoption('--collect-only', default=False) or
config.getoption('--setup-plan', default=False) or
not config.option.rp_enabled)
# noinspection PyProtectedMember
if not config._rp_enabled:
return

Expand Down

0 comments on commit a18098d

Please sign in to comment.