Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[7.4.x] Fix user_properties not saved to XML if fixture errors during teardown #11382

Merged
merged 1 commit into from Sep 3, 2023

Conversation

nicoddemus
Copy link
Member

Move handling of user_properties to finalize().

Previously if a fixture failed during teardown, pytest_runtest_logreport would not be called with "teardown", resulting in the user properties not being saved on the JUnit XML file.

Fixes: #11367
(cherry picked from commit 917ce9a)

Move handling of user_properties to `finalize()`.

Previously if a fixture failed during teardown, `pytest_runtest_logreport` would not be called with "teardown", resulting in the user properties not being saved on the JUnit XML file.

Fixes: pytest-dev#11367
(cherry picked from commit 917ce9a)
@nicoddemus nicoddemus merged commit 7f5d9b9 into pytest-dev:7.4.x Sep 3, 2023
26 checks passed
@nicoddemus nicoddemus deleted the backport-11369 branch September 3, 2023 18:02
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.

None yet

2 participants