Skip to content

Cleanups#3

Closed
RonnyPfannschmidt wants to merge 3 commits into
pytest-dev:masterfrom
RonnyPfannschmidt:cleanups
Closed

Cleanups#3
RonnyPfannschmidt wants to merge 3 commits into
pytest-dev:masterfrom
RonnyPfannschmidt:cleanups

Conversation

@RonnyPfannschmidt
Copy link
Copy Markdown
Member

more nice testing
killed copied code

Comment thread rerunfailures/plugin.py
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where is the test being run if we return here?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a pytest_runtest_protocol hook call has the first non-None return value as result
so if one hook implementation bails out and returns None, the next one is called

@klrmn
Copy link
Copy Markdown
Contributor

klrmn commented Oct 18, 2012

This code did not meet my needs, but I am fairly certain I have incorporated changes that address the problems.

@klrmn klrmn closed this Oct 18, 2012
Borda added a commit to Borda/pytest-rerunfailures that referenced this pull request Jun 4, 2026
[resolve pytest-dev#3] Review by @Copilot (PR pytest-dev#332):
"This increments the suite-wide counter even when the cap is already
exhausted, which can permanently overshoot the configured limit..."
Challenge: evidence=VALID suggestion=VALID resolution=as-suggested

- Add `try_increment_suite_reruns(max_cap)` to StatusDB, ServerStatusDB, ClientStatusDB
- ServerStatusDB adds `try_inc` socket protocol (atomic check-then-increment)
- Caller uses bool return instead of post-increment comparison
- Counter now reflects reruns actually performed, not attempts

---
Co-authored-by: Claude Code <noreply@anthropic.com>
Co-authored-by: OpenAI Codex <codex@openai.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants