Skip to content

Commit

Permalink
making ruff happy
Browse files Browse the repository at this point in the history
  • Loading branch information
betolink committed Feb 29, 2024
1 parent f9325ab commit c6feced
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/integration/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

ACCEPTABLE_FAILURE_RATE = 10


@pytest.hookimpl()
def pytest_sessionfinish(session, exitstatus):
if exitstatus==0:
if exitstatus == 0:
return
failure_rate = (100.0 * session.testsfailed) / session.testscollected
if failure_rate <= ACCEPTABLE_FAILURE_RATE:
session.exitstatus = 0

0 comments on commit c6feced

Please sign in to comment.