Skip to content

Commit

Permalink
Merge pull request #43 from utgwkk/revert-40-master
Browse files Browse the repository at this point in the history
Revert "Ignore failures that are retried using `pytest-rerunfailures` plugin"
  • Loading branch information
utgwkk authored Oct 24, 2021
2 parents e3f4982 + ac79cfa commit 0235d34
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions pytest_github_actions_annotate_failures/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,6 @@ def pytest_runtest_makereport(item, call):
if os.environ.get("GITHUB_ACTIONS") != "true":
return

try:
# If we have the pytest_rerunfailures plugin, and there are still
# retries to be run, then ignore error
import pytest_rerunfailures
if item.execution_count <= pytest_rerunfailures.get_reruns_count(item):
return
except ImportError:
pass

if report.when == "call" and report.failed:
# collect information to be annotated
filesystempath, lineno, _ = report.location
Expand Down

0 comments on commit 0235d34

Please sign in to comment.