Skip to content

Fix tmp path retention 14998 - #15265

Closed
pmic1 wants to merge 5 commits into
pytest-dev:mainfrom
pmic1:fix-tmp-path-retention-14998
Closed

pmic1 wants to merge 5 commits into
pytest-dev:mainfrom
pmic1:fix-tmp-path-retention-14998

Conversation

@pmic1

@pmic1 pmic1 commented Oct 26, 2026

Copy link
Copy Markdown

Changes
Fixed an issue where tmp_path_retention_policy="failed" incorrectly removed temporary directories when fixture setup or teardown failed.

The fix defers cleanup until the teardown report is available, allowing pytest to consider failures during setup, call, and teardown.

Tests
Full test suite: 4,591 passed, 0 failed.

@pyba-chronographer pyba-chronographer Bot added the bot:chronographer:provided (automation) changelog entry is part of PR label Oct 26, 2026

Copy link
Copy Markdown
Member

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

Thanks, but #14998 already has an open PR with the same fix, #15078, and two earlier closed ones (#14999, #15093); GitHub lists them on the issue. Please check an issue's linked PRs before starting. Closing this as a duplicate of #15078.


Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot:chronographer:provided (automation) changelog entry is part of PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants