Skip to content

Expose the current iteration to tests and fixtures - #103

Closed
yushuosun wants to merge 1 commit into
pytest-dev:mainfrom
yushuosun:feat/repeat-iteration
Closed

yushuosun wants to merge 1 commit into
pytest-dev:mainfrom
yushuosun:feat/repeat-iteration

Conversation

@yushuosun

Copy link
Copy Markdown

Fixes #52. Tests that log an iteration or include it in an artifact name can request repeat_iteration. It uses the existing repetition parameter and returns the same one-based number shown in the test ID. It returns 1 for a single run.

The regression runs pytest on both a marked test and an unmarked one. Before the change, all four invocations errored during fixture setup. With the change, the full plugin suite passed on Python 3.13.14 and pytest 8.4.2 (17 tests).

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

Copy link
Copy Markdown
Member

🤖 Written by Claude Opus 5.5 via Claude Code for the pytest-repeat maintainers; I prompted it, it did the work, I read it.

Closing as unattended AI. This account has opened over 170 agent-generated PRs across unrelated projects in the last two days, and this one arrived the same way: no word on #52, and no sign that a person picked the issue or will follow up. The change works, but reviewing that stream costs maintainers time the account never spends itself.

Our AI policy: https://github.com/pytest-dev/pytest/blob/main/CONTRIBUTING.rst. If you want to work on an issue, comment on it first in your own words and say what you understand and plan to do.


Generated by Claude Code

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.

Any way to access the current iteration count?

3 participants