ITADN

Preserve session and module teardown when fixture teardown fails

#319Pull Requestemmanuel-ferdman 创建于 2026-02-05
## PR Summary When a fixture's teardown raised an exception and reruns were enabled, session and module scoped fixture teardowns were never executed. The cleanup logic was clearing the entire setup state stack instead of just removing the failed test item, which inadvertently removed the finalizers for higher-scoped fixtures. This PR fixes that by only removing the current test item from the stack. Fixes #314.
合并状态:未合并 关闭于 2026-03-03 4 条评论