Repository navigation
fix: undo hookcall monitors independently - #816
mikegit123git wants to merge 1 commit into
Conversation
|
🤖 Written by Claude Opus 5.5 via Claude Code for the pluggy maintainers; I prompted it, it did the work, I read it. Thanks, but I'm closing this. #815 was a note from my own review of #814, and I'm already working on a different fix: monitors become controllers inside This PR restates the "possible fix" text from the issue, generated with ChatGPT, and went up two hours after the issue with no discussion first. That isn't the kind of contribution our AI policy asks for: https://github.com/pytest-dev/pytest/blob/main/CONTRIBUTING.rst. If you want to help with an issue, please comment on it first and say what you understand and what you plan to do. Generated by Claude Code |
Closes #815
Problem
add_hookcall_monitoring()currently assumes LIFO removal.Undoing an older monitor removes newer monitors, while later undo operations can restore previously removed monitors.
The same issue affects
enable_tracing().There is no known real-world failure reported so far.
Fix
This follows the smaller list-based approach suggested in #815.
Regression tests
Added tests for:
Added changelog/815.bugfix.rst.
Verification
Reproduced the original bug on Linux.
After the fix:
AI assistance
ChatGPT assisted with the implementation, regression tests, and PR description.
The reproducer, full test suite, and pre-commit checks were executed in a Linux development environment.
The contributor will personally review and respond to maintainer feedback.